@@ -178,6 +178,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
178178 ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
179179
180180 then :
181+ compareQueryToExecutionInput(null ,
182+ " query QUERY { a { test alpha } }" , (SimpleMockServiceProvider ) serviceA)
183+ compareQueryToExecutionInput(null ,
184+ null , (SimpleMockServiceProvider ) serviceB)
181185 executionResult. getErrors(). isEmpty()
182186
183187 specUnderTest. runtimeGraph?. getType(" MyType1" ) != null
@@ -215,6 +219,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
215219 ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
216220
217221 then :
222+ compareQueryToExecutionInput(null ,
223+ null , (SimpleMockServiceProvider ) serviceA)
224+ compareQueryToExecutionInput(null ,
225+ " query QUERY { b { test beta } }" , (SimpleMockServiceProvider ) serviceB)
218226 executionResult. getErrors(). isEmpty()
219227
220228 specUnderTest. runtimeGraph?. getType(" MyType1" ) != null
@@ -305,6 +313,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
305313 ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
306314
307315 then :
316+ compareQueryToExecutionInput(null ,
317+ " query QUERY { a { test alpha } }" , (SimpleMockServiceProvider ) serviceA)
318+ compareQueryToExecutionInput(null ,
319+ null , (SimpleMockServiceProvider ) serviceB)
308320 executionResult. getErrors(). isEmpty()
309321
310322 specUnderTest. runtimeGraph?. getExecutableSchema(). getType(" Query" ). getFieldDefinition(" b" ) == null
@@ -342,6 +354,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
342354 ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
343355
344356 then :
357+ compareQueryToExecutionInput(null ,
358+ null , (SimpleMockServiceProvider ) serviceA)
359+ compareQueryToExecutionInput(null ,
360+ " query QUERY { bb { test beta } }" , (SimpleMockServiceProvider ) serviceB)
345361 executionResult. getErrors(). isEmpty()
346362
347363 specUnderTest. runtimeGraph?. getExecutableSchema(). getType(" Query" ). getFieldDefinition(" b" ) == null
@@ -450,6 +466,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
450466 ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
451467
452468 then :
469+ compareQueryToExecutionInput(null ,
470+ " fragment NameFragment on IName { name } query QUERY { a {...NameFragment test alpha}}" , (SimpleMockServiceProvider ) serviceA)
471+ compareQueryToExecutionInput(null ,
472+ null , (SimpleMockServiceProvider ) serviceB)
453473 executionResult. getErrors(). isEmpty()
454474 Map<String , Object > data = executionResult. getData()
455475 data. a?. name instanceof String && data. a?. name == " A A"
@@ -487,6 +507,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
487507 ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
488508
489509 then :
510+ compareQueryToExecutionInput(null ,
511+ null , (SimpleMockServiceProvider ) serviceA)
512+ compareQueryToExecutionInput(null ,
513+ " fragment NameFragment on ITheName { name } query QUERY { b {...NameFragment test beta}}" , (SimpleMockServiceProvider ) serviceB)
490514 executionResult. getErrors(). isEmpty()
491515 Map<String , Object > data = executionResult. getData()
492516 data. b?. name instanceof String && data. b?. name == " B B"
0 commit comments