Search in sources :

Example 1 with TestOverallExecutionEventListener

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);
}
Also used : TestOverallExecutionEventListener(io.shardingjdbc.core.executor.fixture.TestOverallExecutionEventListener) TestDMLExecutionEventListener(io.shardingjdbc.core.executor.fixture.TestDMLExecutionEventListener) ExecutorEngine(io.shardingjdbc.core.executor.ExecutorEngine) TestDQLExecutionEventListener(io.shardingjdbc.core.executor.fixture.TestDQLExecutionEventListener) Before(org.junit.Before)

Aggregations

ExecutorEngine (io.shardingjdbc.core.executor.ExecutorEngine)1 TestDMLExecutionEventListener (io.shardingjdbc.core.executor.fixture.TestDMLExecutionEventListener)1 TestDQLExecutionEventListener (io.shardingjdbc.core.executor.fixture.TestDQLExecutionEventListener)1 TestOverallExecutionEventListener (io.shardingjdbc.core.executor.fixture.TestOverallExecutionEventListener)1 Before (org.junit.Before)1