src/test/java/com/microsoft/azure/cosmosdb/kafka/connect/sink/SinkSettingsTest.java
@Test
    public void readUninitialized() {
        HashMap<String, String> source = new HashMap<>();
        SinkSettings sinkSettings = new SinkSettings();
        sinkSettings.populate(source);
        assertNull(sinkSettings.getPostProcessor());
        assertEquals(SettingDefaults.TASK_BUFFER_SIZE, sinkSettings.getTaskBufferSize());
        assertEquals(SettingDefaults.TASK_TIMEOUT, sinkSettings.getTaskTimeout());
    }
/**
     * Ensure that everything is null when no other value is present
     */
Ensure that everything is null when no other value is present
Ensure that everything is null when no other value is present
@Test
    public void readUninitialized() {
        HashMap<String, String> source = new HashMap<>();
        SinkSettings sinkSettings = new SinkSettings();
        sinkSettings.populate(source);
        assertNull(sinkSettings.getPostProcessor());
        assertEquals(SettingDefaults.TASK_BUFFER_SIZE, sinkSettings.getTaskBufferSize());
        assertEquals(SettingDefaults.TASK_TIMEOUT, sinkSettings.getTaskTimeout());
    }
@ Test public void readUninitialized ( ) { HashMap < String , String > source = new HashMap < > ( ) ; SinkSettings sinkSettings = new SinkSettings ( ) ; sinkSettings . populate ( source ) ; assertNull ( sinkSettings . getPostProcessor ( ) ) ; assertEquals ( SettingDefaults . TASK_BUFFER_SIZE , sinkSettings . getTaskBufferSize ( ) ) ; assertEquals ( SettingDefaults . TASK_TIMEOUT , sinkSettings . getTaskTimeout ( ) ) ; }
Ensure that everything is null when no other value is present
Ensure that everything is null when no other value is present