@Test public void shouldReplicateContent() throws InterruptedException { Testing.Print.disable();
@Before public void beforeEach() { Debug.disable(); Print.disable(); stopConnector(); initializeConnectorTestFramework(); transformation = new UnwrapFromMongoDbEnvelope<>(); transformation.configure(Collections.emptyMap()); // Use the DB configuration to define the connector's configuration ... Configuration config = TestHelper.getConfiguration().edit() .with(MongoDbConnectorConfig.POLL_INTERVAL_MS, 10) .with(MongoDbConnectorConfig.COLLECTION_WHITELIST, DB_NAME + "." + this.getCollectionName()) .with(MongoDbConnectorConfig.LOGICAL_NAME, "mongo") .build(); // Set up the replication context for connections ... context = new MongoDbTaskContext(config); // Cleanup database TestHelper.cleanDatabase(primary(), DB_NAME); // Start the connector ... start(MongoDbConnector.class, config); }
@After public void after() { Testing.Print.disable(); }
@After public void afterEachTestMethod() { Testing.Print.disable(); }
/** * Run the connector with connector configuration and expected results files, but find a mismatch in the results. */ @Test(expected = AssertionError.class) public void shouldRunConnectorFromFilesAndFindMismatch(){ // Testing.Debug.enable(); Testing.Print.disable(); runConnector("simple-test-c", "src/test/resources/simple/test/c"); }
@After public void afterEachTestMethod() { Testing.Print.disable(); }
@After public void after() { Testing.Print.disable(); }
/** * Run the connector with connector configuration and expected results files, but find a mismatch in the results. */ @Test(expected = AssertionError.class) public void shouldRunConnectorFromFilesAndFindMismatch(){ // Testing.Debug.enable(); Testing.Print.disable(); runConnector("simple-test-c", "src/test/resources/simple/test/c"); }
@Before public void beforeEach() { Testing.Debug.disable(); Testing.Print.disable(); stopConnector(); initializeConnectorTestFramework(); }
@Before public void beforeEach() { Testing.Print.disable(); Testing.Debug.disable(); useConfiguration(TestHelper.getConfiguration()); }