@Before public void cleanOffsetStorage() { Testing.Print.enable(); Testing.Files.delete(CONNECTOR_OUTPUT_PATH); Testing.Files.delete(OFFSET_STORE_PATH); OFFSET_STORE_PATH.getParent().toFile().mkdirs(); }
@Test public void shouldDetectRunningConncurrentTxOnInit() throws Exception { Testing.Print.enable();
Testing.Print.enable(); Testing.print("Problem with message on topic '" + record.topic() + "':"); Testing.printError(t);
@Test public void shouldDetectRunningConncurrentTxOnInit() throws Exception { Testing.Print.enable();
@Ignore @Test public void shouldReadMultipleBinlogFiles() throws Exception { Testing.Print.enable(); startClient(client -> { client.setBinlogFilename("mysql-bin.000001"); }); counters.consumeAll(20, TimeUnit.SECONDS); }
@Before public void cleanOffsetStorage() { Testing.Print.enable(); Testing.Files.delete(CONNECTOR_OUTPUT_PATH); Testing.Files.delete(OFFSET_STORE_PATH); OFFSET_STORE_PATH.getParent().toFile().mkdirs(); }
@Ignore @Test( expected = ServerException.class) public void shouldFailToConnectToInvalidBinlogFile() throws Exception { Testing.Print.enable(); startClient(client -> { client.setBinlogFilename("invalid-mysql-binlog.filename.000001"); }); }
@Before public void before() throws SQLException { TestHelper.createTestDatabase(); connection = TestHelper.testConnection(); connection.execute( "CREATE TABLE tablea (id int primary key, cola varchar(30))", "CREATE TABLE tableb (id int primary key, colb varchar(30))", "INSERT INTO tablea VALUES(1, 'a')" ); TestHelper.enableTableCdc(connection, "tablea"); TestHelper.enableTableCdc(connection, "tableb"); initializeConnectorTestFramework(); Testing.Files.delete(TestHelper.DB_HISTORY_PATH); Testing.Print.enable(); }
@Test public void shouldListDatabases() { Testing.Print.enable(); Testing.print("Databases: " + primary.databaseNames()); } }
@Ignore @Test( expected = ServerException.class) public void shouldFailToConnectToInvalidBinlogFile() throws Exception { Testing.Print.enable(); startClient(client -> { client.setBinlogFilename("invalid-mysql-binlog.filename.000001"); }); }
@Ignore @Test public void shouldReadMultipleBinlogFiles() throws Exception { Testing.Print.enable(); startClient(client -> { client.setBinlogFilename("mysql-bin.000001"); }); counters.consumeAll(20, TimeUnit.SECONDS); }