KEYCLOAK-8830 Stabilize ExportImportTest

This commit is contained in:
Sebastian Laskawiec 2018-11-19 13:08:30 +01:00 committed by Pavel Drozd
parent 5ad929b9ee
commit 4fbbaf18aa

View file

@ -67,6 +67,11 @@ public class ClientModelTest extends AbstractKeycloakTest {
"org.keycloak.testsuite.model"); "org.keycloak.testsuite.model");
} }
@Override
protected boolean isImportAfterEachMethod() {
return true;
}
@Override @Override
public void addTestRealms(List<RealmRepresentation> testRealms) { public void addTestRealms(List<RealmRepresentation> testRealms) {
RealmRepresentation realm = new RealmRepresentation(); RealmRepresentation realm = new RealmRepresentation();
@ -301,6 +306,7 @@ public class ClientModelTest extends AbstractKeycloakTest {
currentSession.realms().removeClient(client.getId(), realm); currentSession.realms().removeClient(client.getId(), realm);
currentSession.realms().removeClient(copyClient.getId(), realm); currentSession.realms().removeClient(copyClient.getId(), realm);
currentSession.realms().removeRealm(realm.getId());
}); });
} }