Cleanup resources allocated in @BeforeClass
[yangtools.git] / yang / rfc8040-parser-support / src / test / java / org / opendaylight / yangtools / rfc8040 / parser / YangDataExtensionTest.java
index 69c58ff5cb9ca1093d77e65ea2e0722f17871b35..396de474c8ba577917558d130edf183e255d7a32 100644 (file)
@@ -18,6 +18,7 @@ import java.io.IOException;
 import java.net.URI;
 import java.util.List;
 import java.util.Set;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.opendaylight.yangtools.rfc8040.model.api.YangDataSchemaNode;
@@ -73,6 +74,11 @@ public class YangDataExtensionTest {
                 .build();
     }
 
+    @AfterClass
+    public static void freeReactor() {
+        reactor = null;
+    }
+
     @Test
     public void testYangData() throws Exception {
         final SchemaContext schemaContext = reactor.newBuild().addSources(FOO_MODULE, IETF_RESTCONF_MODULE)