@@ -178,6 +178,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
178
178
ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
179
179
180
180
then :
181
+ compareQueryToExecutionInput(null ,
182
+ " query QUERY { a { test alpha } }" , (SimpleMockServiceProvider ) serviceA)
183
+ compareQueryToExecutionInput(null ,
184
+ null , (SimpleMockServiceProvider ) serviceB)
181
185
executionResult. getErrors(). isEmpty()
182
186
183
187
specUnderTest. runtimeGraph?. getType(" MyType1" ) != null
@@ -215,6 +219,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
215
219
ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
216
220
217
221
then :
222
+ compareQueryToExecutionInput(null ,
223
+ null , (SimpleMockServiceProvider ) serviceA)
224
+ compareQueryToExecutionInput(null ,
225
+ " query QUERY { b { test beta } }" , (SimpleMockServiceProvider ) serviceB)
218
226
executionResult. getErrors(). isEmpty()
219
227
220
228
specUnderTest. runtimeGraph?. getType(" MyType1" ) != null
@@ -305,6 +313,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
305
313
ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
306
314
307
315
then :
316
+ compareQueryToExecutionInput(null ,
317
+ " query QUERY { a { test alpha } }" , (SimpleMockServiceProvider ) serviceA)
318
+ compareQueryToExecutionInput(null ,
319
+ null , (SimpleMockServiceProvider ) serviceB)
308
320
executionResult. getErrors(). isEmpty()
309
321
310
322
specUnderTest. runtimeGraph?. getExecutableSchema(). getType(" Query" ). getFieldDefinition(" b" ) == null
@@ -342,6 +354,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
342
354
ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
343
355
344
356
then :
357
+ compareQueryToExecutionInput(null ,
358
+ null , (SimpleMockServiceProvider ) serviceA)
359
+ compareQueryToExecutionInput(null ,
360
+ " query QUERY { bb { test beta } }" , (SimpleMockServiceProvider ) serviceB)
345
361
executionResult. getErrors(). isEmpty()
346
362
347
363
specUnderTest. runtimeGraph?. getExecutableSchema(). getType(" Query" ). getFieldDefinition(" b" ) == null
@@ -450,6 +466,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
450
466
ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
451
467
452
468
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)
453
473
executionResult. getErrors(). isEmpty()
454
474
Map<String , Object > data = executionResult. getData()
455
475
data. a?. name instanceof String && data. a?. name == " A A"
@@ -487,6 +507,10 @@ class XtextConflictResolverSpec extends BaseIntegrationTestSpecification {
487
507
ExecutionResult executionResult = specUnderTest. execute(executionInput). get()
488
508
489
509
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)
490
514
executionResult. getErrors(). isEmpty()
491
515
Map<String , Object > data = executionResult. getData()
492
516
data. b?. name instanceof String && data. b?. name == " B B"
0 commit comments