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 boolean
boolean
Expected 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 presentdouble
Seconds to wait for UI to stabilize before state verificationint
hashCode()
boolean
Whether to clear active states before verificationboolean
Whether to run diagnostics on failureboolean
Whether to throw exception on verification failurevoid
setClearStatesBeforeVerification
(boolean clearStatesBeforeVerification) Whether to clear active states before verificationvoid
setExpectedStateEnums
(List<StateEnum> expectedStateEnums) Expected states to find (by enum)void
setExpectedStates
(List<String> expectedStates) Expected states to find (by name)void
setFallbackImagePaths
(List<String> fallbackImagePaths) Fallback paths to search if primary path doesn't existvoid
setPrimaryImagePath
(String primaryImagePath) Primary image path to usevoid
setRequiredImages
(List<String> requiredImages) Required images that must be presentvoid
setRunDiagnosticsOnFailure
(boolean runDiagnosticsOnFailure) Whether to run diagnostics on failurevoid
setThrowOnFailure
(boolean throwOnFailure) Whether to throw exception on verification failurevoid
setUiStabilizationDelay
(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
-