@Test(groups = SMALL) public void testSetupCallsTheSetupMethodOfTheConfigurator() { MysqlConfigurator mockedConfigurator = mock(MysqlConfigurator.class); MysqlEventSource eventSource = new MysqlEventSource(provider, TEST_TABLE_NAME, mockedConfigurator); eventSource.setup(); verify(mockedConfigurator).setup(); }
@Override public void setup() { configurator.setup(); }
MysqlEventSource implements EventSource { @Override public void setup() { configurator.setup(); } }
MysqlEventSource implements EventSource { @Override public void setup() { configurator.setup(); } MysqlEventSource(ConnectionProvider connectionProvider, String tableName); @VisibleForTesting  MysqlEventSource(ConnectionProvider connectionProvider, String tableName, MysqlConfigurator configurator); }
MysqlEventSource implements EventSource { @Override public void setup() { configurator.setup(); } MysqlEventSource(ConnectionProvider connectionProvider, String tableName); @VisibleForTesting  MysqlEventSource(ConnectionProvider connectionProvider, String tableName, MysqlConfigurator configurator); @Override List<Event<Map<String, Object>>> getNewEvents(); @Override void connect(); @Override void disconnect(); @Override boolean isConnected(); @Override void setup(); @Override void cleanup(); }
MysqlEventSource implements EventSource { @Override public void setup() { configurator.setup(); } MysqlEventSource(ConnectionProvider connectionProvider, String tableName); @VisibleForTesting  MysqlEventSource(ConnectionProvider connectionProvider, String tableName, MysqlConfigurator configurator); @Override List<Event<Map<String, Object>>> getNewEvents(); @Override void connect(); @Override void disconnect(); @Override boolean isConnected(); @Override void setup(); @Override void cleanup();  }