Skip to content
Snippets Groups Projects
Commit 256633ed authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5400 add unittest realm update

parent 6d591889
Branches
Tags
No related merge requests found
......@@ -61,7 +61,7 @@ class KeycloakRealmServiceTest {
private KeycloakGenericRemoteService keycloakGenericRemoteService;
@Nested
class TestCreanOrUpdateRealm {
class TestCreateOrUpdateRealm {
@Test
void shouldCallCreateRealmMethodIfNotExists() {
......@@ -82,6 +82,13 @@ class KeycloakRealmServiceTest {
verify(service).updateRealm(existingRealm, REALM);
}
@Test
void shouldCallGetRealmRepresentation() {
service.createOrUpdateRealm(REALM, REALM_NAME);
verify(keycloakGenericRemoteService).getRealmRepresentation(REALM_NAME);
}
}
@DisplayName("Update Realm")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment