package org.sagebionetworks.dashboard.config;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import org.junit.Test;
import org.sagebionetworks.dashboard.config.DwConfig;

public class DwConfigTest {

    @Test
    public void test() {
        DwConfig config = new DwConfig();
        assertNotNull(config.getAccessRecordBucket());
        assertNotNull(config.getAwsAccessKey());
        assertNotNull(config.getAwsSecretKey());
        assertNotNull(config.getDwUrl());
        assertNotNull(config.getDwUsername());
        assertNotNull(config.getDwPassword());
        assertNotNull(config.getSynapseUser());
        assertNotNull(config.getSynapsePassword());
        assertNotNull(config.getBridgeAwsAccessKey());
        assertNotNull(config.getBridgeAwsSecretKey());
        assertNotNull(config.getBridgeStack());
        assertNotNull(config.getBridgeUser());
        assertNotNull(config.getBridgeBackupBucket());
        assertNotNull(config.getBridgeDynamoTables());
        assertEquals(2, config.getBridgeDynamoTables().size());
        assertEquals("TestTable1", config.getBridgeDynamoTables().get(0));
        assertEquals("TestTable2", config.getBridgeDynamoTables().get(0));
    }
}

@@ -81,138 +81,39 @@
 sert
-Equals;%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport org.junit.Test;%0Aimport org.sagebionetworks.dashboard.config.DwConfig
+NotNull;%0A%0Aimport org.junit.Test
 ;%0A%0Ap
@@ -925,222 +925,8 @@
 ));%0A
-        assertEquals(2, config.getBridgeDynamoTables().size());%0A        assertEquals(%22TestTable1%22, config.getBridgeDynamoTables().get(0));%0A        assertEquals(%22TestTable2%22, config.getBridgeDynamoTables().get(0));%0A
     

Fix unit test as this is overwritten by user's local config