Package org.keycloak.it.utils
Class RawKeycloakDistribution
- java.lang.Object
-
- org.keycloak.it.utils.RawKeycloakDistribution
-
- All Implemented Interfaces:
KeycloakDistribution
public final class RawKeycloakDistribution extends Object implements KeycloakDistribution
-
-
Field Summary
-
Fields inherited from interface org.keycloak.it.utils.KeycloakDistribution
SCRIPT_CMD, SCRIPT_CMD_INVOKABLE
-
-
Constructor Summary
Constructors Constructor Description RawKeycloakDistribution(boolean debug, boolean manualStop, boolean enableTls, boolean reCreate, boolean removeBuildOptionsAfterBuild)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyOrReplaceFile(Path file, Path targetFile)voidcopyOrReplaceFileFromClasspath(String file, Path targetFile)voidcopyProvider(String groupId, String artifactId)voidcopyProvider(TestProvider provider)voiddeleteQuarkusProperties()String[]getCliArgs(List<String> arguments)PathgetDistPath()List<String>getErrorStream()intgetExitCode()List<String>getOutputStream()booleanisDebug()booleanisManualStop()voidremoveProperty(String name)CLIResultrun(List<String> arguments)voidsetEnvVar(String name, String value)voidsetManualStop(boolean manualStop)voidsetProperty(String key, String value)voidsetQuarkusProperty(String key, String value)voidstop()<D extends KeycloakDistribution>
Dunwrap(Class<D> type)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.it.utils.KeycloakDistribution
run
-
-
-
-
Method Detail
-
run
public CLIResult run(List<String> arguments)
- Specified by:
runin interfaceKeycloakDistribution
-
stop
public void stop()
- Specified by:
stopin interfaceKeycloakDistribution
-
getOutputStream
public List<String> getOutputStream()
- Specified by:
getOutputStreamin interfaceKeycloakDistribution
-
getErrorStream
public List<String> getErrorStream()
- Specified by:
getErrorStreamin interfaceKeycloakDistribution
-
getExitCode
public int getExitCode()
- Specified by:
getExitCodein interfaceKeycloakDistribution
-
isDebug
public boolean isDebug()
- Specified by:
isDebugin interfaceKeycloakDistribution
-
isManualStop
public boolean isManualStop()
- Specified by:
isManualStopin interfaceKeycloakDistribution
-
getCliArgs
public String[] getCliArgs(List<String> arguments)
- Specified by:
getCliArgsin interfaceKeycloakDistribution
-
setManualStop
public void setManualStop(boolean manualStop)
- Specified by:
setManualStopin interfaceKeycloakDistribution
-
setProperty
public void setProperty(String key, String value)
- Specified by:
setPropertyin interfaceKeycloakDistribution
-
setEnvVar
public void setEnvVar(String name, String value)
- Specified by:
setEnvVarin interfaceKeycloakDistribution
-
removeProperty
public void removeProperty(String name)
- Specified by:
removePropertyin interfaceKeycloakDistribution
-
setQuarkusProperty
public void setQuarkusProperty(String key, String value)
- Specified by:
setQuarkusPropertyin interfaceKeycloakDistribution
-
deleteQuarkusProperties
public void deleteQuarkusProperties()
- Specified by:
deleteQuarkusPropertiesin interfaceKeycloakDistribution
-
copyOrReplaceFileFromClasspath
public void copyOrReplaceFileFromClasspath(String file, Path targetFile)
- Specified by:
copyOrReplaceFileFromClasspathin interfaceKeycloakDistribution
-
copyOrReplaceFile
public void copyOrReplaceFile(Path file, Path targetFile)
- Specified by:
copyOrReplaceFilein interfaceKeycloakDistribution
-
getDistPath
public Path getDistPath()
-
copyProvider
public void copyProvider(TestProvider provider)
-
unwrap
public <D extends KeycloakDistribution> D unwrap(Class<D> type)
- Specified by:
unwrapin interfaceKeycloakDistribution
-
-