mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-18 17:47:05 +01:00
Issue #730: Remove redundant method from Settings
Pull file loading from loadSuppressionData() to make it easier to read Add test assertion to happy case Ant task test
This commit is contained in:
@@ -336,19 +336,4 @@ public class SettingsTest extends BaseTest {
|
||||
assertThat("Expected the property to be set", Settings.getString("key"), is("value1"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert {@link Settings#setArray(String, String[])} with multiple values sets a delimited string.
|
||||
*/
|
||||
@Test
|
||||
public void testSetArraySetsADelimitedString() {
|
||||
// GIVEN an array with values
|
||||
final String[] array = { "value1", "value2" };
|
||||
|
||||
// WHEN setting the array
|
||||
Settings.setArray("key", array);
|
||||
|
||||
// THEN the property is set
|
||||
assertThat("Expected the property to be set", Settings.getString("key"), is("value1,value2"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user