use of io.shardingjdbc.core.executor.fixture.TestOverallExecutionEventListener in project sharding-jdbc by shardingjdbc.
the class AbstractBaseExecutorTest method setUp.
@Before
public void setUp() {
MockitoAnnotations.initMocks(this);
ExecutorExceptionHandler.setExceptionThrown(false);
executorEngine = new ExecutorEngine(Runtime.getRuntime().availableProcessors());
overallExecutionEventListener = new TestOverallExecutionEventListener(eventCaller);
dqlExecutionEventListener = new TestDQLExecutionEventListener(eventCaller);
dmlExecutionEventListener = new TestDMLExecutionEventListener(eventCaller);
EventBusInstance.getInstance().register(overallExecutionEventListener);
EventBusInstance.getInstance().register(dqlExecutionEventListener);
EventBusInstance.getInstance().register(dmlExecutionEventListener);
}
Aggregations