Fix checkstyle in yang-parser-impl and enable enforcement
[yangtools.git] / yang / yang-parser-impl / src / test / java / org / opendaylight / yangtools / yang / stmt / Bug5335Test.java
index d9e866b9e1b898d57c2b870a39f189cc8aaca5d4..e325c0c0ac46d6f9cf505cc566df3a376a68e5bc 100644 (file)
@@ -46,6 +46,7 @@ public class Bug5335Test {
     }
 
     @After
+    @SuppressWarnings("checkstyle:regexpSinglelineJava")
     public void cleanUp() {
         System.setOut(System.out);
     }
@@ -60,8 +61,8 @@ public class Bug5335Test {
         assertNull(mandatoryLeaf);
 
         final String testLog = output.toString();
-        assertTrue(testLog
-                .contains("An augment cannot add node 'mandatory-leaf' because it is mandatory and in module different than target"));
+        assertTrue(testLog.contains(
+            "An augment cannot add node 'mandatory-leaf' because it is mandatory and in module different than target"));
     }
 
     @Test
@@ -74,8 +75,8 @@ public class Bug5335Test {
         assertNull(mandatoryLeaf);
 
         final String testLog = output.toString();
-        assertTrue(testLog
-                .contains("An augment cannot add node 'mandatory-leaf' because it is mandatory and in module different than target"));
+        assertTrue(testLog.contains(
+            "An augment cannot add node 'mandatory-leaf' because it is mandatory and in module different than target"));
     }
 
     @Test
@@ -89,8 +90,8 @@ public class Bug5335Test {
         assertNull(mandatoryLeaf);
 
         final String testLog = output.toString();
-        assertTrue(testLog
-                .contains("An augment cannot add node 'mandatory-leaf' because it is mandatory and in module different than target"));
+        assertTrue(testLog.contains(
+            "An augment cannot add node 'mandatory-leaf' because it is mandatory and in module different than target"));
     }
 
     @Test