dependency-check-utils/src/test/java/org/owasp/dependencycheck/utils/SettingsTest.java
/**
     * Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with
     * multiple values sets a delimited string.
     */
Assert  Settings#setArrayIfNotEmpty(String, String[]) with
multiple values sets a delimited string.
Assert Settings#setArrayIfNotEmpty ( String String [] ) with multiple values sets a delimited string .
@Test
    public void testSetArrayNotEmptySetsADelimitedString() {
        final String[] array = {"value1", "value2"};
        Settings.setArrayIfNotEmpty("key", array);
        assertThat("Expected the property to be set", Settings.getString("key"), is("value1,value2"));
    }
@ Test public void testSetArrayNotEmptySetsADelimitedString ( ) { final String [ ] array = { "value1" , "value2" } ; Settings . setArrayIfNotEmpty ( "key" , array ) ; assertThat ( "Expected the property to be set" , Settings . getString ( "key" ) , is ( "value1,value2" ) ) ; }
Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with
 multiple values sets a delimited string.
Assert { @link Settings#setArrayIfNotEmpty ( String String [] ) } with multiple values sets a delimited string .
// GIVEN an array with values // WHEN setting the array // THEN the property is set