1.1 --- a/rt/vm/src/test/java/org/apidesign/vm4brwsr/VMinVMTest.java Tue Feb 26 16:54:16 2013 +0100
1.2 +++ b/rt/vm/src/test/java/org/apidesign/vm4brwsr/VMinVMTest.java Thu Feb 28 07:48:54 2013 +0100
1.3 @@ -21,6 +21,7 @@
1.4 import java.io.FileWriter;
1.5 import java.io.IOException;
1.6 import static org.testng.Assert.*;
1.7 +import org.testng.annotations.AfterClass;
1.8 import org.testng.annotations.BeforeClass;
1.9 import org.testng.annotations.Test;
1.10
1.11 @@ -40,9 +41,13 @@
1.12 }
1.13
1.14 @BeforeClass
1.15 - public void compileTheCode() throws Exception {
1.16 + public static void compileTheCode() throws Exception {
1.17 code = TestVM.compileClass("org/apidesign/vm4brwsr/VMinVM");
1.18 }
1.19 + @AfterClass
1.20 + public static void releaseTheCode() {
1.21 + code = null;
1.22 + }
1.23
1.24 private void compareCode(final String nm) throws Exception, IOException {
1.25 byte[] arr = BytesLoader.readClass(nm);