Package org.keycloak.it.junit5.extension
Class KeycloakDistributionDecorator
- java.lang.Object
-
- org.keycloak.it.junit5.extension.KeycloakDistributionDecorator
-
- All Implemented Interfaces:
KeycloakDistribution
public class KeycloakDistributionDecorator 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 KeycloakDistributionDecorator(LegacyStore legacyStoreConfig, WithDatabase databaseConfig, DistributionTest config, KeycloakDistribution delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyOrReplaceFile(Path file, Path targetFile)voidcopyOrReplaceFileFromClasspath(String file, Path distDir)voiddeleteQuarkusProperties()String[]getCliArgs(List<String> arguments)List<String>getErrorStream()intgetExitCode()List<String>getOutputStream()booleanisDebug()booleanisManualStop()voidremoveProperty(String name)CLIResultrun(List<String> rawArgs)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
-
-
-
-
Constructor Detail
-
KeycloakDistributionDecorator
public KeycloakDistributionDecorator(LegacyStore legacyStoreConfig, WithDatabase databaseConfig, DistributionTest config, KeycloakDistribution delegate)
-
-
Method Detail
-
run
public CLIResult run(List<String> rawArgs)
- 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
-
setQuarkusProperty
public void setQuarkusProperty(String key, String value)
- Specified by:
setQuarkusPropertyin interfaceKeycloakDistribution
-
setProperty
public void setProperty(String key, String value)
- Specified by:
setPropertyin interfaceKeycloakDistribution
-
deleteQuarkusProperties
public void deleteQuarkusProperties()
- Specified by:
deleteQuarkusPropertiesin interfaceKeycloakDistribution
-
copyOrReplaceFileFromClasspath
public void copyOrReplaceFileFromClasspath(String file, Path distDir)
- Specified by:
copyOrReplaceFileFromClasspathin interfaceKeycloakDistribution
-
removeProperty
public void removeProperty(String name)
- Specified by:
removePropertyin interfaceKeycloakDistribution
-
setEnvVar
public void setEnvVar(String name, String value)
- Specified by:
setEnvVarin interfaceKeycloakDistribution
-
copyOrReplaceFile
public void copyOrReplaceFile(Path file, Path targetFile)
- Specified by:
copyOrReplaceFilein interfaceKeycloakDistribution
-
unwrap
public <D extends KeycloakDistribution> D unwrap(Class<D> type)
- Specified by:
unwrapin interfaceKeycloakDistribution
-
-