aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/test
diff options
context:
space:
mode:
authorsharath reddy <bs.reddy@huawei.com>2022-03-18 20:11:27 +0530
committersharath reddy <bs.reddy@huawei.com>2022-03-22 12:23:56 +0530
commit9df5c4d3e3e7b72b54de212a4a97ef18e5930948 (patch)
tree73afa3942fbc09f4c98b1cc57edc2b11d06213e1 /framework/src/test
parent3a40008342681bfdbd5ac73ac1b4b6a85c7fd8eb (diff)
Fixed Sonar Bugs & Vulnerabilities
Issue-ID: CLI-439 Signed-off-by: sharath reddy <bs.reddy@huawei.com> Change-Id: Icbe3d40286d15b8b3639af7a7eb6c4e189169a3f Signed-off-by: sharath reddy <bs.reddy@huawei.com>
Diffstat (limited to 'framework/src/test')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/input/cache/OnapCommandParameterCacheTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/input/cache/OnapCommandParameterCacheTest.java b/framework/src/test/java/org/onap/cli/fw/input/cache/OnapCommandParameterCacheTest.java
index 70c89d88..e4dafba8 100644
--- a/framework/src/test/java/org/onap/cli/fw/input/cache/OnapCommandParameterCacheTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/input/cache/OnapCommandParameterCacheTest.java
@@ -22,7 +22,7 @@ import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
-import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertFalse;
public class OnapCommandParameterCacheTest {
@Test
@@ -31,7 +31,7 @@ public class OnapCommandParameterCacheTest {
FileUtils.touch(new File("data" + File.separator + "test-profile.json"));
File test_profile = new File("data" + File.separator + "test-profile.json");
FileUtils.touch(test_profile);
- assertNotNull(test_profile.lastModified());
+ assertFalse(0 == test_profile.lastModified());
//assertTrue(OnapCommandProfileStore.getInstance().getProfiles().contains("test"));
// FileUtils.cleanDirectory(new File("data"));
}