dependency-check-utils/src/test/java/org/owasp/dependencycheck/utils/SettingsTest.java
/**
     * Test of setStringIfNotNull method, of class Settings.
     */
Test of setStringIfNotNull method, of class Settings.
Test of setStringIfNotNull method of class Settings .
@Test
    public void testSetStringIfNotNull() {
        String key = "nullableProperty";
        String value = "someValue";
        Settings.setString(key, value);
        Settings.setStringIfNotNull(key, null); 
        String expResults = Settings.getString(key);
        Assert.assertEquals(expResults, value);
    }
@ Test public void testSetStringIfNotNull ( ) { String key = "nullableProperty" ; String value = "someValue" ; Settings . setString ( key , value ) ; Settings . setStringIfNotNull ( key , null ) ; String expResults = Settings . getString ( key ) ; Assert . assertEquals ( expResults , value ) ; }
Test of setStringIfNotNull method, of class Settings.
Test of setStringIfNotNull method of class Settings .
// NO-OP