diff --git a/test-poc/framework/src/main/java/org/keycloak/test/framework/server/KeycloakTestServerSupplier.java b/test-poc/framework/src/main/java/org/keycloak/test/framework/server/AbstractKeycloakTestServerSupplier.java similarity index 77% rename from test-poc/framework/src/main/java/org/keycloak/test/framework/server/KeycloakTestServerSupplier.java rename to test-poc/framework/src/main/java/org/keycloak/test/framework/server/AbstractKeycloakTestServerSupplier.java index 70ab47291c..17a9117fd6 100644 --- a/test-poc/framework/src/main/java/org/keycloak/test/framework/server/KeycloakTestServerSupplier.java +++ b/test-poc/framework/src/main/java/org/keycloak/test/framework/server/AbstractKeycloakTestServerSupplier.java @@ -7,7 +7,7 @@ import org.keycloak.test.framework.injection.Registry; import org.keycloak.test.framework.injection.Supplier; import org.keycloak.test.framework.injection.SupplierHelpers; -public class KeycloakTestServerSupplier implements Supplier { +public abstract class AbstractKeycloakTestServerSupplier implements Supplier { @Override public Class getValueType() { @@ -23,8 +23,7 @@ public class KeycloakTestServerSupplier implements Supplier getValue(Registry registry, KeycloakIntegrationTest annotation) { KeycloakTestServerConfig serverConfig = SupplierHelpers.getInstance(annotation.config()); -// RemoteKeycloakTestServer keycloakTestServer = new RemoteKeycloakTestServer(); - EmbeddedKeycloakTestServer keycloakTestServer = new EmbeddedKeycloakTestServer(); + KeycloakTestServer keycloakTestServer = getServer(); keycloakTestServer.start(serverConfig); @@ -37,8 +36,10 @@ public class KeycloakTestServerSupplier implements Supplier