Use text blocks in YT1433Test
[yangtools.git] / data / yang-data-api / src / test / java / org / opendaylight / yangtools / yang / data / api / schema / stream / YT1433Test.java
index 6bc5b5da6b7f340287af0c88d644b17bf33c7d2b..84a78d7a42ff8fa0fb979c7688a13f3bcb1afd03 100644 (file)
@@ -48,16 +48,18 @@ public class YT1433Test {
             }
         }
 
-        assertEquals("(foo)foo(container)\n"
-            + "  AugmentationIdentifier{childNames=[(foo)bar]}(augmentation)\n"
-            + "    (foo)bar(container)\n"
-            + "      AugmentationIdentifier{childNames=[(foo)baz]}(augmentation)\n"
-            + "        (foo)baz(container)\n"
-            + "        (end)\n"
-            + "      (end)\n"
-            + "    (end)\n"
-            + "  (end)\n"
-            + "(end)\n", streamWriter.result());
+        assertEquals("""
+            (foo)foo(container)
+              AugmentationIdentifier{childNames=[(foo)bar]}(augmentation)
+                (foo)bar(container)
+                  AugmentationIdentifier{childNames=[(foo)baz]}(augmentation)
+                    (foo)baz(container)
+                    (end)
+                  (end)
+                (end)
+              (end)
+            (end)
+            """, streamWriter.result());
     }
 
     @Test
@@ -79,11 +81,13 @@ public class YT1433Test {
             }
         }
 
-        assertEquals("(bar)foo(choice)\n"
-            + "  (bar)bar(container)\n"
-            + "    (bar)baz(container)\n"
-            + "    (end)\n"
-            + "  (end)\n"
-            + "(end)\n", streamWriter.result());
+        assertEquals("""
+            (bar)foo(choice)
+              (bar)bar(container)
+                (bar)baz(container)
+                (end)
+              (end)
+            (end)
+            """, streamWriter.result());
     }
 }