Skip to content

Commit 2820157

Browse files
committed
update batch dataloader test assertiion
1 parent 4eae7ad commit 2820157

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

autoconfigure/src/test/java/com/introproventures/graphql/jpa/query/autoconfigure/GraphQLSchemaAutoConfigurationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,6 @@ void batchLoaderRegistry() {
533533
DataLoaderRegistry dataLoaderRegistry = newRegistry().build();
534534
batchLoaderRegistry.registerDataLoaders(dataLoaderRegistry, newContext().build());
535535

536-
assertThat(dataLoaderRegistry.getDataLoadersMap()).isNotEmpty().containsOnlyKeys("TestEntity.children");
536+
assertThat(dataLoaderRegistry.getDataLoadersMap()).isNotEmpty().containsKeys("TestEntity.children");
537537
}
538538
}

tests/boot-starter/src/test/java/com/introproventures/graphql/jpa/query/boot/test/autoconfigure/GraphQLJpaQueryGraphQlSourceAutoConfigurationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ public void contextIsAutoConfigured() {
7979
DataLoaderRegistry dataLoaderRegistry = newRegistry().build();
8080
batchLoaderRegistry.registerDataLoaders(dataLoaderRegistry, newContext().build());
8181

82-
assertThat(dataLoaderRegistry.getDataLoadersMap()).isNotEmpty().containsOnlyKeys("Author.books", "Book.author");
82+
assertThat(dataLoaderRegistry.getDataLoadersMap()).isNotEmpty().containsKeys("Author.books", "Book.author");
8383
}
8484
}

0 commit comments

Comments
 (0)