Further cleanup of tests
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug6131Test.java
index 6b9690b85af9bc55d81840c4a230b92e2d90eaf0..710ffae2296824847ae3d662ebd6d72a52b25792 100644 (file)
@@ -8,17 +8,13 @@
 
 package org.opendaylight.yangtools.yang.stmt;
 
-import java.io.IOException;
-import java.net.URISyntaxException;
+import static org.junit.Assert.assertThrows;
+
 import org.junit.Test;
-import org.opendaylight.yangtools.yang.parser.api.YangSyntaxErrorException;
-import org.opendaylight.yangtools.yang.parser.spi.meta.ReactorException;
-import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
 
-public class Bug6131Test {
-    @Test(expected = NullPointerException.class)
-    public void test() throws ReactorException, URISyntaxException, SourceException, IOException,
-            YangSyntaxErrorException {
-        StmtTestUtils.parseYangSources("/bugs/bug6131");
+public class Bug6131Test extends AbstractYangTest {
+    @Test
+    public void test() {
+        assertThrows(NullPointerException.class, () -> TestUtils.loadModules("/bugs/bug6131"));
     }
 }
\ No newline at end of file