mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-04-20 23:41:43 +02:00
minor formating updates
This commit is contained in:
@@ -44,7 +44,9 @@ import org.owasp.dependencycheck.utils.Settings.KEYS;
|
||||
*/
|
||||
public class AppTest {
|
||||
|
||||
/** Test rule for asserting exceptions and their contents. */
|
||||
/**
|
||||
* Test rule for asserting exceptions and their contents.
|
||||
*/
|
||||
@Rule
|
||||
public ExpectedException expectedException = ExpectedException.none();
|
||||
|
||||
@@ -82,7 +84,8 @@ public class AppTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that boolean properties can be set on the CLI and parsed into the {@link Settings} singleton.
|
||||
* Assert that boolean properties can be set on the CLI and parsed into the
|
||||
* {@link Settings} singleton.
|
||||
*
|
||||
* @throws Exception the unexpected {@link Exception}.
|
||||
*/
|
||||
@@ -134,7 +137,8 @@ public class AppTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that an {@link UnrecognizedOptionException} is thrown when a property that is not supported is specified on the CLI.
|
||||
* Assert that an {@link UnrecognizedOptionException} is thrown when a
|
||||
* property that is not supported is specified on the CLI.
|
||||
*
|
||||
* @throws Exception the unexpected {@link Exception}.
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Copyright (c) 2013 Jeremy Long. All Rights Reserved.
|
||||
Copyright (c) 2017 Jeremy Long. All Rights Reserved.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
@@ -246,7 +246,8 @@ public class SettingsTest extends BaseTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert {@link Settings#getArray(String)} from a delimited string returns multiple values in an array.
|
||||
* Assert {@link Settings#getArray(String)} from a delimited string returns
|
||||
* multiple values in an array.
|
||||
*/
|
||||
@Test
|
||||
public void testGetArrayFromADelimitedString() {
|
||||
@@ -265,7 +266,8 @@ public class SettingsTest extends BaseTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert {@link Settings#getArray(String)} returns {@code null} if the property is not set.
|
||||
* Assert {@link Settings#getArray(String)} returns {@code null} if the
|
||||
* property is not set.
|
||||
*/
|
||||
@Test
|
||||
public void testGetArrayWhereThePropertyIsNotSet() {
|
||||
@@ -277,7 +279,8 @@ public class SettingsTest extends BaseTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with an empty array is ignored.
|
||||
* Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with an
|
||||
* empty array is ignored.
|
||||
*/
|
||||
@Test
|
||||
public void testSetArrayNotEmptyIgnoresAnEmptyArray() {
|
||||
@@ -292,7 +295,8 @@ public class SettingsTest extends BaseTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with a null array is ignored.
|
||||
* Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with a null
|
||||
* array is ignored.
|
||||
*/
|
||||
@Test
|
||||
public void testSetArrayNotEmptyIgnoresAnNullArray() {
|
||||
@@ -307,7 +311,8 @@ public class SettingsTest extends BaseTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@Test
|
||||
public void testSetArrayNotEmptySetsADelimitedString() {
|
||||
@@ -322,7 +327,8 @@ public class SettingsTest extends BaseTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with a single values sets a string.
|
||||
* Assert {@link Settings#setArrayIfNotEmpty(String, String[])} with a
|
||||
* single values sets a string.
|
||||
*/
|
||||
@Test
|
||||
public void testSetArrayNotEmptyWithSingleValueSetsAString() {
|
||||
@@ -335,5 +341,4 @@ public class SettingsTest extends BaseTest {
|
||||
// THEN the property is set
|
||||
assertThat("Expected the property to be set", Settings.getString("key"), is("value1"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user