File tree Expand file tree Collapse file tree
core-java-modules/core-java-14/src
main/java/com/baeldung/java14/textblocks
test/java/com/baeldung/java14/textblocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ public String getBlockOfHtml() {
66 <html>
77
88 <body>
9- <p >example text</p >
9+ <span >example text</span >
1010 </body>
1111 </html>""" ;
1212 }
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ void givenAnOldStyleMultilineString_whenComparing_thenEqualsTextBlock() {
1212 String expected = "<html>\n "
1313 + "\n "
1414 + " <body>\n "
15- + " <p >example text</p >\n "
15+ + " <span >example text</span >\n "
1616 + " </body>\n "
1717 + "</html>" ;
1818 assertThat (subject .getBlockOfHtml ()).isEqualTo (expected );
1919 }
2020
2121 @ Test
2222 void givenAnOldStyleString_whenComparing_thenEqualsTextBlock () {
23- String expected = "<html>\n \n <body>\n <p >example text</p >\n </body>\n </html>" ;
23+ String expected = "<html>\n \n <body>\n <span >example text</span >\n </body>\n </html>" ;
2424 assertThat (subject .getBlockOfHtml ()).isEqualTo (expected );
2525 }
2626
You can’t perform that action at this time.
0 commit comments