Skip to content

Commit

Permalink
updates tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tjuerge committed Mar 27, 2024
1 parent 106aafa commit 279fb99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<maven-failsafe.version>3.2.5</maven-failsafe.version>
<keycloak.version>24.0.1</keycloak.version>
<jsoup.version>1.17.2</jsoup.version>
<junit.version>5.10.2</junit.version>

<junit.version>5.10.2</junit.version>
<mockito.version>5.11.0</mockito.version>
<mock-server.version>5.15.0</mock-server.version>
<slf4j.version>2.0.12</slf4j.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void testUsersWithGroups(String username, String email) {
UsersResource usersResource = kcAdmin.realm(REALM).users();
// Get user representation for given username
List<UserRepresentation> users = usersResource.search(username);
assertThat(users, is(not(empty())));
assertEquals(1, users.size());
String userId = users.get(0).getId();
// Retrieve user details and check user's email address
UserResource userResource = usersResource.get(userId);
Expand All @@ -81,7 +81,7 @@ public void testFullSync() {
RealmResource realm = kcAdmin.realm(REALM);
// Retrieve ID of LDAP user federation provider
List<ComponentRepresentation> storageProviders = realm.components().query(realm.toRepresentation().getId(), UserStorageProvider.class.getName());
assertThat(storageProviders, is(not(empty())));
assertEquals(1, storageProviders.size());
String storageProviderId = storageProviders.get(0).getId();
// Trigger full sync of users and groups
SynchronizationResultRepresentation syncResult = realm.userStorage().syncUsers(storageProviderId, "triggerFullSync");
Expand Down

0 comments on commit 279fb99

Please sign in to comment.