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

View File

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