aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorpdragosh <pd1248@att.com>2022-08-02 12:21:24 -0500
committerPamela Dragosh <pd1248@att.com>2022-08-03 15:24:39 +0000
commitf851847420df0a524fd65a6dd2c190d41ccaff44 (patch)
tree5cd0b7c10fc87f31147ebc7b959b4674b3b48d33 /utils
parentb5ea6ef739a59d17c907d5a7233d2af0ed24526f (diff)
Upgrade to oparent 3.2.1
Fixed new checkstyle issues. Issue-ID: POLICY-4211 Change-Id: Id4567c7d416dcb92a96521793dd6dcad4035cd72 Signed-off-by: pdragosh <pd1248@att.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java b/utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java
index 2e122187..335d841f 100644
--- a/utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java
+++ b/utils/src/test/java/org/onap/policy/common/utils/resources/ResourceUtilsTest.java
@@ -1,7 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
- * Modifications Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 2019-2020,2022 AT&T Intellectual Property. All rights reserved.
* Modifications Copyright (C) 2020 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -309,7 +309,7 @@ public class ResourceUtilsTest {
assertNull(ResourceUtils.getFilePath4Resource(null));
assertEquals("/something/else", ResourceUtils.getFilePath4Resource("/something/else"));
assertTrue(ResourceUtils.getFilePath4Resource("xml/example.xml").endsWith("xml/example.xml"));
- assertTrue(ResourceUtils.getFilePath4Resource("com/google").endsWith("com/google"));
+ assertTrue(ResourceUtils.getFilePath4Resource("com/google").contains("com/google"));
}
@Test
@@ -329,10 +329,10 @@ public class ResourceUtilsTest {
Set<String> resultD2 = ResourceUtils.getDirectoryContents("org/onap/policy/common/utils/coder");
assertTrue(resultD2.size() >= 15);
assertEquals("org/onap/policy/common/utils/coder/CoderExceptionTest.class",
- normalizePath(resultD2.iterator().next()));
+ normalizePath(resultD2.iterator().next()));
Set<String> resultJ0 = ResourceUtils.getDirectoryContents("com");
- assertEquals(189, resultJ0.size());
+ assertTrue(resultJ0.contains("com/google/gson/"));
assertEquals("com/google/", normalizePath(resultJ0.iterator().next()));
Set<String> resultJ1 = ResourceUtils.getDirectoryContents("com/google/gson");
@@ -346,6 +346,7 @@ public class ResourceUtilsTest {
/**
* Normalizes a path name, replacing OS-specific separators with "/".
+ *
* @param pathName path name to be normalized
* @return the normalized path name
*/