File tree Expand file tree Collapse file tree
aws-app-sync/src/test/java/com/baeldung/awsappsync Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments