Cleanup resources allocated in @BeforeClass
[yangtools.git] / yang / odlext-parser-support / src / test / java / org / opendaylight / yangtools / odlext / parser / Bug3874ExtensionTest.java
index cf83d6068e0ccf6dd0b9b2a39fbd2b5f05d7f274..fb5e14f6621fb594fa21a8f6fa37222f67389770 100644 (file)
@@ -12,6 +12,7 @@ import static org.junit.Assert.assertTrue;
 
 import java.net.URI;
 import java.util.List;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.opendaylight.yangtools.odlext.model.api.OpenDaylightExtensionsStatements;
@@ -45,6 +46,11 @@ public class Bug3874ExtensionTest {
                 .build();
     }
 
+    @AfterClass
+    public static void freeReactor() {
+        reactor = null;
+    }
+
     @Test
     public void test() throws Exception {
         SchemaContext context = reactor.newBuild()