
org.keycloak.it.utils.KeycloakDistribution Maven / Gradle / Ivy
package org.keycloak.it.utils;
import org.keycloak.it.junit5.extension.CLIResult;
import org.keycloak.quarkus.runtime.Environment;
import java.nio.file.Path;
import java.util.List;
public interface KeycloakDistribution {
String SCRIPT_CMD = Environment.isWindows() ? "kc.bat" : "kc.sh";
String SCRIPT_KCADM_CMD = Environment.isWindows() ? "kcadm.bat" : "kcadm.sh";
CLIResult run(List arguments);
default CLIResult run(String... arguments) {
return run(List.of(arguments));
}
void stop();
List getOutputStream();
List getErrorStream();
int getExitCode();
boolean isDebug();
boolean isManualStop();
void setRequestPort();
void setRequestPort(int port);
default String[] getCliArgs(List arguments) {
throw new RuntimeException("Not implemented");
}
default void setManualStop(boolean manualStop) {
throw new RuntimeException("Not implemented");
}
default void setQuarkusProperty(String key, String value) {
throw new RuntimeException("Not implemented");
}
default void setProperty(String key, String value) {
throw new RuntimeException("Not implemented");
}
default void deleteQuarkusProperties() {
throw new RuntimeException("Not implemented");
}
default void copyOrReplaceFileFromClasspath(String file, Path distDir) {
throw new RuntimeException("Not implemented");
}
default void removeProperty(String name) {
throw new RuntimeException("Not implemented");
}
default void setEnvVar(String name, String value) {
throw new RuntimeException("Not implemented");
}
default void copyOrReplaceFile(Path file, Path targetFile) {
throw new RuntimeException("Not implemented");
}
D unwrap(Class type);
void clearEnv();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy