Class ApplicationStartupVerifier.StartupConfig
java.lang.Object
io.github.jspinak.brobot.startup.verification.ApplicationStartupVerifier.StartupConfig
- Enclosing class:
ApplicationStartupVerifier
Configuration for application startup verification
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanExpected states to find (by enum)Expected states to find (by name)Fallback paths to search if primary path doesn't existPrimary image path to useRequired images that must be presentdoubleSeconds to wait for UI to stabilize before state verificationinthashCode()booleanWhether to clear active states before verificationbooleanWhether to run diagnostics on failurebooleanWhether to throw exception on verification failurevoidsetClearStatesBeforeVerification(boolean clearStatesBeforeVerification) Whether to clear active states before verificationvoidsetExpectedStateEnums(List<StateEnum> expectedStateEnums) Expected states to find (by enum)voidsetExpectedStates(List<String> expectedStates) Expected states to find (by name)voidsetFallbackImagePaths(List<String> fallbackImagePaths) Fallback paths to search if primary path doesn't existvoidsetPrimaryImagePath(String primaryImagePath) Primary image path to usevoidsetRequiredImages(List<String> requiredImages) Required images that must be presentvoidsetRunDiagnosticsOnFailure(boolean runDiagnosticsOnFailure) Whether to run diagnostics on failurevoidsetThrowOnFailure(boolean throwOnFailure) Whether to throw exception on verification failurevoidsetUiStabilizationDelay(double uiStabilizationDelay) Seconds to wait for UI to stabilize before state verificationtoString()
-
Method Details
-
builder
-
getPrimaryImagePath
Primary image path to use -
getFallbackImagePaths
Fallback paths to search if primary path doesn't exist -
getRequiredImages
Required images that must be present -
isClearStatesBeforeVerification
public boolean isClearStatesBeforeVerification()Whether to clear active states before verification -
getUiStabilizationDelay
public double getUiStabilizationDelay()Seconds to wait for UI to stabilize before state verification -
getExpectedStates
Expected states to find (by name) -
getExpectedStateEnums
Expected states to find (by enum) -
isThrowOnFailure
public boolean isThrowOnFailure()Whether to throw exception on verification failure -
isRunDiagnosticsOnFailure
public boolean isRunDiagnosticsOnFailure()Whether to run diagnostics on failure -
setPrimaryImagePath
Primary image path to use -
setFallbackImagePaths
Fallback paths to search if primary path doesn't exist -
setRequiredImages
Required images that must be present -
setClearStatesBeforeVerification
public void setClearStatesBeforeVerification(boolean clearStatesBeforeVerification) Whether to clear active states before verification -
setUiStabilizationDelay
public void setUiStabilizationDelay(double uiStabilizationDelay) Seconds to wait for UI to stabilize before state verification -
setExpectedStates
Expected states to find (by name) -
setExpectedStateEnums
Expected states to find (by enum) -
setThrowOnFailure
public void setThrowOnFailure(boolean throwOnFailure) Whether to throw exception on verification failure -
setRunDiagnosticsOnFailure
public void setRunDiagnosticsOnFailure(boolean runDiagnosticsOnFailure) Whether to run diagnostics on failure -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-