package org.opendaylight.yangtools.yang.stmt;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
import java.io.FileNotFoundException;
import java.net.URISyntaxException;
public void test() throws ReactorException, SourceException, FileNotFoundException, URISyntaxException {
try {
StmtTestUtils.parseYangSources("/bugs/bug6131");
+ fail("A NullPointerException should have been thrown.");
} catch (final Exception e) {
- assertEquals("Malformed source. Valid root element is missing.", e.getMessage());
+ assertTrue(e instanceof NullPointerException);
}
}
}
\ No newline at end of file