Use text blocks in YT1433Test 56/101056/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 10 May 2022 19:43:50 +0000 (21:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 10 May 2022 19:43:50 +0000 (21:43 +0200)
We have two multi-line concatenations here, just use text blocks
instead.

Change-Id: I837554506c305ee8b608da0f5be245c9a8ac0538
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
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());
     }
 }