We have two multi-line concatenations here, just use text blocks
instead.
Change-Id: I837554506c305ee8b608da0f5be245c9a8ac0538
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
- 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());
- 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());