diff options
Diffstat (limited to 'utils/src/test')
3 files changed, 8 insertions, 8 deletions
diff --git a/utils/src/test/java/org/onap/policy/common/utils/properties/PropertyObjectUtilsTest.java b/utils/src/test/java/org/onap/policy/common/utils/properties/PropertyObjectUtilsTest.java index 83b264f5..93b30643 100644 --- a/utils/src/test/java/org/onap/policy/common/utils/properties/PropertyObjectUtilsTest.java +++ b/utils/src/test/java/org/onap/policy/common/utils/properties/PropertyObjectUtilsTest.java @@ -104,7 +104,7 @@ public class PropertyObjectUtilsTest { Map<String, Object> result = PropertyObjectUtils.toObject(props, ""); // @formatter:off - Map<String,Object> map = + Map<String, Object> map = Map.of("abc", Arrays.asList(null, "expand.ghi", "expand.def")); // @formatter:on @@ -119,7 +119,7 @@ public class PropertyObjectUtilsTest { Map<String, Object> result = PropertyObjectUtils.toObject(props, ""); // @formatter:off - Map<String,Object> map = + Map<String, Object> map = Map.of("object", Map.of("abc", Map.of("ghi", "object.jkl"))); @@ -134,7 +134,7 @@ public class PropertyObjectUtilsTest { Map<String, Object> result = PropertyObjectUtils.toObject(props, ""); // @formatter:off - Map<String,Object> map = + Map<String, Object> map = Map.of("array", Map.of("abc", List.of( diff --git a/utils/src/test/java/org/onap/policy/common/utils/properties/exception/PropertyAccessExceptionTest.java b/utils/src/test/java/org/onap/policy/common/utils/properties/exception/PropertyAccessExceptionTest.java index 27b0e850..ef2051d8 100644 --- a/utils/src/test/java/org/onap/policy/common/utils/properties/exception/PropertyAccessExceptionTest.java +++ b/utils/src/test/java/org/onap/policy/common/utils/properties/exception/PropertyAccessExceptionTest.java @@ -34,10 +34,10 @@ public class PropertyAccessExceptionTest extends SupportBasicPropertyExceptionTe */ @Test public void testPropertyAccessExceptionStringField() { - verifyPropertyExceptionStringField_AllPopulated( new PropertyAccessException(PROPERTY, FIELD)); - verifyPropertyExceptionStringField_NullProperty( new PropertyAccessException(null, FIELD)); - verifyPropertyExceptionStringField_NullField( new PropertyAccessException(PROPERTY, null)); - verifyPropertyExceptionStringField_BothNull( new PropertyAccessException(null, null)); + verifyPropertyExceptionStringField_AllPopulated(new PropertyAccessException(PROPERTY, FIELD)); + verifyPropertyExceptionStringField_NullProperty(new PropertyAccessException(null, FIELD)); + verifyPropertyExceptionStringField_NullField(new PropertyAccessException(PROPERTY, null)); + verifyPropertyExceptionStringField_BothNull(new PropertyAccessException(null, null)); } /** diff --git a/utils/src/test/java/org/onap/policy/common/utils/services/FeatureApiUtilsTest.java b/utils/src/test/java/org/onap/policy/common/utils/services/FeatureApiUtilsTest.java index 232d3409..d111962e 100644 --- a/utils/src/test/java/org/onap/policy/common/utils/services/FeatureApiUtilsTest.java +++ b/utils/src/test/java/org/onap/policy/common/utils/services/FeatureApiUtilsTest.java @@ -61,7 +61,7 @@ public class FeatureApiUtilsTest { public void testApplyFeatureFalse() { List<String> lst = Arrays.asList("falseF1", "exceptF2", "falseF3"); - assertFalse(FeatureApiUtils.apply(lst, pred, (str,ex) -> errors.add(str))); + assertFalse(FeatureApiUtils.apply(lst, pred, (str, ex) -> errors.add(str))); assertEquals(lst.toString(), tried.toString()); assertEquals("[exceptF2]", errors.toString()); } |