Fix checkstyle in yang-parser-impl and enable enforcement
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug7146Test.java
index 147a81a497c950aba61a007acc748f6981cc98d8..90935fd324ceccd375f698c3b4685051cdf4528b 100644 (file)
@@ -23,7 +23,7 @@ public class Bug7146Test {
         try {
             StmtTestUtils.parseYangSources(sourceForResource("/bugs/bug7146/foo.yang"));
             fail("RuntimeException should have been thrown because of an unknown character in yang module.");
-        } catch (RuntimeException ex) {
+        } catch (IllegalArgumentException ex) {
             final Throwable cause = ex.getCause();
             assertTrue(cause instanceof YangSyntaxErrorException);
             assertTrue(cause.getMessage().contains("extraneous input '#'"));