Bael-3893 - Fixed string concatenation operator

This commit is contained in:
Kyle Doyle 2020-05-11 08:28:13 -04:00
parent f8cae12a38
commit 9194d94eeb
1 changed files with 23 additions and 23 deletions

View File

@ -16,17 +16,17 @@ class AwsAppSyncApplicationTests {
void givenGraphQuery_whenListEvents_thenReturnAllEvents() {
Map<String, Object> requestBody = new HashMap<>();
requestBody.put("query", "query ListEvents {" +
" listEvents {" +
" items {" +
" id" +
" name" +
" where" +
" when" +
" description" +
" }" +
" }" +
"}");
requestBody.put("query", "query ListEvents {"
+ " listEvents {"
+ " items {"
+ " id"
+ " name"
+ " where"
+ " when"
+ " description"
+ " }"
+ " }"
+ "}");
requestBody.put("variables", "");
requestBody.put("operationName", "ListEvents");
@ -42,18 +42,18 @@ class AwsAppSyncApplicationTests {
@Test
void givenGraphAdd_whenMutation_thenReturnIdNameDesc() {
String queryString = "mutation add {" +
" createEvent(" +
" name:\"My added GraphQL event\"" +
" where:\"Day 2\"" +
" when:\"Saturday night\"" +
" description:\"Studying GraphQL\"" +
" ){" +
" id" +
" name" +
" description" +
" }" +
"}";
String queryString = "mutation add {"
+ " createEvent("
+ " name:\"My added GraphQL event\""
+ " where:\"Day 2\""
+ " when:\"Saturday night\""
+ " description:\"Studying GraphQL\""
+ " ){"
+ " id"
+ " name"
+ " description"
+ " }"
+ "}";
Map<String, Object> requestBody = new HashMap<>();
requestBody.put("query", queryString);