Skip to content

Commit 73733ed

Browse files
committed
Bael-3893 - Fixed string concatenation operator
1 parent 1a75bfd commit 73733ed

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

aws-app-sync/src/test/java/com/baeldung/awsappsync/AwsAppSyncApplicationTests.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ class AwsAppSyncApplicationTests {
1616
void givenGraphQuery_whenListEvents_thenReturnAllEvents() {
1717

1818
Map<String, Object> requestBody = new HashMap<>();
19-
requestBody.put("query", "query ListEvents {" +
20-
" listEvents {" +
21-
" items {" +
22-
" id" +
23-
" name" +
24-
" where" +
25-
" when" +
26-
" description" +
27-
" }" +
28-
" }" +
29-
"}");
19+
requestBody.put("query", "query ListEvents {"
20+
+ " listEvents {"
21+
+ " items {"
22+
+ " id"
23+
+ " name"
24+
+ " where"
25+
+ " when"
26+
+ " description"
27+
+ " }"
28+
+ " }"
29+
+ "}");
3030
requestBody.put("variables", "");
3131
requestBody.put("operationName", "ListEvents");
3232

@@ -42,18 +42,18 @@ void givenGraphQuery_whenListEvents_thenReturnAllEvents() {
4242
@Test
4343
void givenGraphAdd_whenMutation_thenReturnIdNameDesc() {
4444

45-
String queryString = "mutation add {" +
46-
" createEvent(" +
47-
" name:\"My added GraphQL event\"" +
48-
" where:\"Day 2\"" +
49-
" when:\"Saturday night\"" +
50-
" description:\"Studying GraphQL\"" +
51-
" ){" +
52-
" id" +
53-
" name" +
54-
" description" +
55-
" }" +
56-
"}";
45+
String queryString = "mutation add {"
46+
+ " createEvent("
47+
+ " name:\"My added GraphQL event\""
48+
+ " where:\"Day 2\""
49+
+ " when:\"Saturday night\""
50+
+ " description:\"Studying GraphQL\""
51+
+ " ){"
52+
+ " id"
53+
+ " name"
54+
+ " description"
55+
+ " }"
56+
+ "}";
5757

5858
Map<String, Object> requestBody = new HashMap<>();
5959
requestBody.put("query", queryString);

0 commit comments

Comments
 (0)