Skip to content
Snippets Groups Projects
Commit 8f319b4c authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5951 update keycloakRealmReconcilerTest

parent 9ae13abb
No related branches found
No related tags found
No related merge requests found
...@@ -23,12 +23,9 @@ ...@@ -23,12 +23,9 @@
*/ */
package de.ozgcloud.operator.keycloak.realm; package de.ozgcloud.operator.keycloak.realm;
import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.*;
import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.*;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
...@@ -135,11 +132,12 @@ class KeycloakRealmReconcilerTest { ...@@ -135,11 +132,12 @@ class KeycloakRealmReconcilerTest {
assertThat(response).isEqualTo(expected); assertThat(response).isEqualTo(expected);
} }
@Test @Test
void shouldCallRealmExists() { void shouldCallRealmExists() {
reconciler.cleanup(realm, null); reconciler.cleanup(realm, null);
verify(keycloakGenericRemoteService).realmExists(null); verify(keycloakGenericRemoteService).realmExists(any());
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment