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));
    }
}

package org.sagebionetworks.dashboard.config;

import static org.junit.Assert.assertNotNull;

import org.junit.Test;

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());
    }
}

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