Skip to content

Commit

Permalink
Use text blocks in testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
vicziani committed Jun 9, 2023
1 parent c407ad9 commit 35f355a
Showing 1 changed file with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,26 @@ class HelloWebClientIT {

@Test
void testHello() {
String request = "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hel=\"http://learnwebservices.com/services/hello\">\n" +
" <soapenv:Header/>\n" +
" <soapenv:Body>\n" +
" <hel:HelloRequest>\n" +
" <hel:Name>John Doe</hel:Name>\n" +
" </hel:HelloRequest>\n" +
" </soapenv:Body>\n" +
"</soapenv:Envelope>";
String request = """
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hel="http://learnwebservices.com/services/hello">
<soapenv:Header/>
<soapenv:Body>
<hel:HelloRequest>
<hel:Name>John Doe</hel:Name>
</hel:HelloRequest>
</soapenv:Body>
</soapenv:Envelope>
""";

String response = "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n" +
" <soap:Body>\n" +
" <HelloResponse xmlns=\"http://learnwebservices.com/services/hello\">\n" +
" <Message>Hello John Doe!</Message>\n" +
" </HelloResponse>\n" +
" </soap:Body>\n" +
"</soap:Envelope>";
String response = """
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<HelloResponse xmlns="http://learnwebservices.com/services/hello">
<Message>Hello John Doe!</Message>
</HelloResponse>
</soap:Body>
</soap:Envelope>
""";

webClient
.post()
Expand Down

0 comments on commit 35f355a

Please sign in to comment.