1 Reply Latest reply on Feb 3, 2010 8:53 AM by Arvind K

    How can I unit test without getting Frozen?

    Andrew Boyd Novice

      Hi All,
      I am using javassist to inject before & after advice in my project. As I am trying to unit test I keep getting the error:

      java.lang.RuntimeException: org.dummy.greenthumb.TreePlanter class is frozen

      From the javassist tutorial it states that this is the error that is thrown if I try to modify a class that has already been modified.

      So my question is: Is there a way to clear the classes that I have modified in the JUnit tearDown() method so that I can modify them again in the next test?

      Or if there is another way to do junit testing please advise.