feat: Using text blocks instead of String literals (#2791)

This commit is contained in:
Manoj Chowdary
2024-03-10 15:09:25 +05:30
committed by GitHub
parent 90f5b38a45
commit e377047a69
10 changed files with 87 additions and 48 deletions
@@ -40,9 +40,14 @@ and https://stackoverflow.com/questions/50211433/servlets-unit-testing
class AppServletTest extends Mockito{
private String msgPartOne = "<h1>This Server Doesn't Support";
private String msgPartTwo = "Requests</h1>\n"
+ "<h2>Use a GET request with boolean values for the following parameters<h2>\n"
+ "<h3>'name'</h3>\n<h3>'bus'</h3>\n<h3>'sports'</h3>\n<h3>'sci'</h3>\n<h3>'world'</h3>";
private String msgPartTwo = """
Requests</h1>
<h2>Use a GET request with boolean values for the following parameters<h2>
<h3>'name'</h3>
<h3>'bus'</h3>
<h3>'sports'</h3>
<h3>'sci'</h3>
<h3>'world'</h3>""";
private String destination = "newsDisplay.jsp";
@Test