Fix master broken, duplicate test methods
@@ -364,10 +364,7 @@ public class SinkConfigUtilsTest extends PowerMockTestCase {
SinkConfig sinkConfig = createSinkConfig();
SinkConfig newSinkConfig = createUpdatedSinkConfig("cleanupSubscription", false);
SinkConfig mergedConfig = SinkConfigUtils.validateUpdate(sinkConfig, newSinkConfig);
- assertEquals(
- mergedConfig.getCleanupSubscription().booleanValue(),
- false
- );
+ assertFalse(mergedConfig.getCleanupSubscription());
mergedConfig.setCleanupSubscription(sinkConfig.getCleanupSubscription());
assertEquals(
new Gson().toJson(sinkConfig),
@@ -390,22 +387,6 @@ public class SinkConfigUtilsTest extends PowerMockTestCase {
);
}
- @Test
- public void testMergeDifferentCleanupSubscription() {
- SinkConfig sinkConfig = createSinkConfig();
- SinkConfig newSinkConfig = createUpdatedSinkConfig("cleanupSubscription", false);
- SinkConfig mergedConfig = SinkConfigUtils.validateUpdate(sinkConfig, newSinkConfig);
- assertEquals(
- mergedConfig.getCleanupSubscription().booleanValue(),
- false
- );
- mergedConfig.setCleanupSubscription(sinkConfig.getCleanupSubscription());
- assertEquals(
- new Gson().toJson(sinkConfig),
- new Gson().toJson(mergedConfig)
- );
- }
-
@Test
public void testValidateConfig() throws IOException {
mockStatic(ConnectorUtils.class);
