Class MockActionHistoryBuilder.Presets
java.lang.Object
io.github.jspinak.brobot.tools.testing.mock.history.MockActionHistoryBuilder.Presets
- Enclosing class:
MockActionHistoryBuilder
Static factory methods for common patterns.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActionHistory
alwaysFound
(Region region) Creates history for an element that always succeeds (100% success rate).static ActionHistory
Creates history for a flaky element (70% success rate).static ActionHistory
Creates history for an element that never succeeds (0% success rate).static ActionHistory
Creates history for a highly reliable element (95% success rate).
-
Constructor Details
-
Presets
public Presets()
-
-
Method Details
-
reliable
Creates history for a highly reliable element (95% success rate).- Parameters:
region
- the region where matches occur- Returns:
- built ActionHistory
-
flaky
Creates history for a flaky element (70% success rate).- Parameters:
region
- the region where matches occur- Returns:
- built ActionHistory
-
alwaysFound
Creates history for an element that always succeeds (100% success rate).- Parameters:
region
- the region where matches occur- Returns:
- built ActionHistory
-
neverFound
Creates history for an element that never succeeds (0% success rate).- Returns:
- built ActionHistory
-