You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: upgrade Spring Boot dependencies to 2.2.0.RELEASE (#188)
* test: upgrade Spring Boot dependencies to 2.2.0.M5
* try adding Spring repository in pom.xml
* fix: assert extractor api changes
* fix: update Spring Boot dependencies to 2.2.0.M6
* fix(versions): update spring-boot-dependencies to 2.2.0.RELEASE
* refactor(tests): replace flatExtracting with asList
* fix(versions): update spring-boot-dependencies to 2.2.2.RELEASE
* fix(version): update to Spring Boot 2.3.0.RELEASE
* fix: remove DataSourceInitializer
Copy file name to clipboardExpand all lines: graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/books/BooksSchemaConfiguration.java
Copy file name to clipboardExpand all lines: graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/starwars/StarwarsSchemaConfiguration.java
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/BooksSchemaBuildTest.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ public void correctlyDerivesToManyOptionalFromGivenEntities() {
130
130
.isPresent().get()
131
131
.extracting(it -> it.getArgument("optional"))
132
132
.extracting("defaultValue")
133
-
.containsExactly(Boolean.FALSE);
133
+
.isEqualTo(Boolean.FALSE);
134
134
}
135
135
136
136
@Test
@@ -150,7 +150,7 @@ public void correctlyDerivesToOneOptionalFromGivenEntities() {
150
150
.isPresent().get()
151
151
.extracting(it -> it.getArgument("optional"))
152
152
.extracting("defaultValue")
153
-
.containsExactly(Boolean.TRUE);
153
+
.isEqualTo(Boolean.TRUE);
154
154
}
155
155
156
156
@Test
@@ -171,7 +171,7 @@ public void shouldBuildSchemaWithStringArrayAsStringListType() {
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/CalculatedEntityTests.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,7 @@ public void shouldInheritMethodDescriptionFromBaseClass() {
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/GraphQLExecutorTests.java
+2-1
Original file line number
Diff line number
Diff line change
@@ -2281,7 +2281,8 @@ public void queryWithEnumParameterShouldExecuteWithNoError() {
Copy file name to clipboardExpand all lines: graphql-jpa-query-schema/src/test/java/com/introproventures/graphql/jpa/query/schema/GraphQLWhereVariableBindingsTests.java
+12-6
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,8 @@ public void queryWithSimpleEqualsVariableBinding() throws IOException {
77
77
Map<String, Object> result = executionResult.getData();
78
78
then(result)
79
79
.extracting("Books")
80
-
.flatExtracting("select")
80
+
.extracting("select")
81
+
.asList()
81
82
.hasSize(1)
82
83
.extracting("id", "title", "genre")
83
84
.containsOnly(tuple(2L, "War and Peace", NOVEL));
@@ -117,13 +118,15 @@ public void queryWithNestedWhereClauseVariableBinding() throws IOException {
117
118
Map<String, Object> result = executionResult.getData();
118
119
then(result)
119
120
.extracting("Books")
120
-
.flatExtracting("select")
121
+
.extracting("select")
122
+
.asList()
121
123
.hasSize(2)
122
124
.extracting("title")
123
125
.containsOnly("War and Peace", "Anna Karenina");
124
126
then(result)
125
127
.extracting("Books")
126
-
.flatExtracting("select")
128
+
.extracting("select")
129
+
.asList()
127
130
.hasSize(2)
128
131
.extracting("author")
129
132
.extracting("id", "name")
@@ -160,7 +163,8 @@ public void queryWithInVariableBinding() throws IOException {
160
163
Map<String, Object> result = executionResult.getData();
161
164
then(result)
162
165
.extracting("Books")
163
-
.flatExtracting("select")
166
+
.extracting("select")
167
+
.asList()
164
168
.extracting("genre")
165
169
.containsOnly(PLAY);
166
170
}
@@ -195,7 +199,8 @@ public void queryWithMultipleRestrictionForOneProperty() throws IOException {
195
199
Map<String, Object> result = executionResult.getData();
196
200
then(result)
197
201
.extracting("Books")
198
-
.flatExtracting("select")
202
+
.extracting("select")
203
+
.asList()
199
204
.extracting("id", "title")
200
205
.containsOnly(
201
206
tuple(5L, "The Cherry Orchard"),
@@ -275,7 +280,8 @@ public void queryWithRestrictionsForMultipleProperties() throws IOException {
275
280
Map<String, Object> result = executionResult.getData();
0 commit comments