From 35f355ac2b493bbb0562ed1056df492e37a2add0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viczi=C3=A1n=20Istv=C3=A1n?= Date: Fri, 9 Jun 2023 22:47:46 +0200 Subject: [PATCH] Use text blocks in testcase --- .../services/hello/HelloWebClientIT.java | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/src/test/java/com/learnwebservices/services/hello/HelloWebClientIT.java b/src/test/java/com/learnwebservices/services/hello/HelloWebClientIT.java index e1eec01..ff5d8d5 100644 --- a/src/test/java/com/learnwebservices/services/hello/HelloWebClientIT.java +++ b/src/test/java/com/learnwebservices/services/hello/HelloWebClientIT.java @@ -14,22 +14,26 @@ class HelloWebClientIT { @Test void testHello() { - String request = "\n" + - " \n" + - " \n" + - " \n" + - " John Doe\n" + - " \n" + - " \n" + - ""; + String request = """ + + + + + John Doe + + + + """; - String response = "\n" + - " \n" + - " \n" + - " Hello John Doe!\n" + - " \n" + - " \n" + - ""; + String response = """ + + + + Hello John Doe! + + + + """; webClient .post()