Class MockConfiguration
java.lang.Object
io.github.jspinak.brobot.config.mock.MockConfiguration
Configuration for mock and wrapper beans to ensure proper initialization order. This
configuration breaks circular dependencies by defining beans explicitly.
When running with the "test" profile, additional optimizations are applied to speed up test execution and provide deterministic behavior.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecutionModeController
(FindWrapper findWrapper, TextWrapper textWrapper, HistogramWrapper histogramWrapper, TimeWrapper timeWrapper) findWrapper
(ExecutionMode executionMode, MockFind mockFind, ScenePatternMatcher scenePatternMatcher) histogramWrapper
(ExecutionMode executionMode, MockHistogram mockHistogram, SingleRegionHistogramExtractor histogramExtractor) mockColor
(ImageLoader imageLoader) mockFind
(ActionDurations actionDurations, StateMemory stateMemory, StateService stateService, MockTime mockTime) mockTime
(ActionDurations actionDurations) textWrapper
(ExecutionMode executionMode, MockText mockText, GetTextWrapper getTextWrapper) timeWrapper
(ExecutionMode executionMode, MockTime mockTime)
-
Constructor Details
-
MockConfiguration
public MockConfiguration()
-
-
Method Details
-
actionDurations
-
mockTime
-
mockText
-
mockHistogram
-
mockColor
-
mockDrag
-
findWrapper
@Bean public FindWrapper findWrapper(ExecutionMode executionMode, MockFind mockFind, ScenePatternMatcher scenePatternMatcher) -
textWrapper
@Bean public TextWrapper textWrapper(ExecutionMode executionMode, MockText mockText, GetTextWrapper getTextWrapper) -
histogramWrapper
@Bean public HistogramWrapper histogramWrapper(ExecutionMode executionMode, MockHistogram mockHistogram, SingleRegionHistogramExtractor histogramExtractor) -
timeWrapper
-
executionModeController
@Bean public ExecutionModeController executionModeController(FindWrapper findWrapper, TextWrapper textWrapper, HistogramWrapper histogramWrapper, TimeWrapper timeWrapper)
-