From 32fb53c13342d5ad353c839b7ffd0ca85d14bd48 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Tue, 1 Dec 2020 11:48:20 -0800 Subject: Migrate sli-core files Migrate sli-core repo files into new directory "core". Signed-off-by: Jessica Wagantall --- .../ccsdk/sli/core/utils/JREFileResolverTest.java | 14 ------------ .../sli/core/utils/KarafRootFileResolverTest.java | 13 ----------- .../utils/common/BundleContexFileResolverTest.java | 16 -------------- .../utils/common/CoreDefaultFileResolverTest.java | 25 ---------------------- .../common/SdncConfigEnvVarFileResolverTest.java | 24 --------------------- .../utils/dblib/DblibDefaultFileResolverTest.java | 25 ---------------------- .../utils/dblib/DblibEnvVarFileResolverTest.java | 24 --------------------- 7 files changed, 141 deletions(-) delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/JREFileResolverTest.java delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/KarafRootFileResolverTest.java delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/BundleContexFileResolverTest.java delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/CoreDefaultFileResolverTest.java delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/SdncConfigEnvVarFileResolverTest.java delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibDefaultFileResolverTest.java delete mode 100644 utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibEnvVarFileResolverTest.java (limited to 'utils/provider/src/test/java/org') diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/JREFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/JREFileResolverTest.java deleted file mode 100644 index 8a066f057..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/JREFileResolverTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.onap.ccsdk.sli.core.utils; - -import static org.junit.Assert.assertEquals; -import org.junit.Test; - -public class JREFileResolverTest { - - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = new JREFileResolver("success", JREFileResolverTest.class); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/KarafRootFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/KarafRootFileResolverTest.java deleted file mode 100644 index df16b41d0..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/KarafRootFileResolverTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.onap.ccsdk.sli.core.utils; - -import static org.junit.Assert.assertEquals; -import org.junit.Test; - -public class KarafRootFileResolverTest { - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = new KarafRootFileResolver("success", null); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/BundleContexFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/BundleContexFileResolverTest.java deleted file mode 100644 index 7ddf550b0..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/BundleContexFileResolverTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.onap.ccsdk.sli.core.utils.common; - -import static org.junit.Assert.assertEquals; -import org.junit.Test; -import org.onap.ccsdk.sli.core.utils.PropertiesFileResolver; - -public class BundleContexFileResolverTest { - - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = - new BundleContextFileResolver("success", BundleContexFileResolverTest.class); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/CoreDefaultFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/CoreDefaultFileResolverTest.java deleted file mode 100644 index f1f5f2244..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/CoreDefaultFileResolverTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.onap.ccsdk.sli.core.utils.common; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import java.io.File; -import java.util.Optional; -import org.junit.Test; -import org.onap.ccsdk.sli.core.utils.PropertiesFileResolver; - -public class CoreDefaultFileResolverTest { - - @Test - public void resolveFile() throws Exception { - final PropertiesFileResolver resolver = new CoreDefaultFileResolver("success"); - final Optional file = resolver.resolveFile("doesnotexist.cfg"); - assertFalse(file.isPresent()); - } - - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = new CoreDefaultFileResolver("success"); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/SdncConfigEnvVarFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/SdncConfigEnvVarFileResolverTest.java deleted file mode 100644 index 130dc0a1e..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/common/SdncConfigEnvVarFileResolverTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.onap.ccsdk.sli.core.utils.common; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import java.io.File; -import java.util.Optional; -import org.junit.Test; -import org.onap.ccsdk.sli.core.utils.PropertiesFileResolver; - -public class SdncConfigEnvVarFileResolverTest { - @Test - public void resolveFile() throws Exception { - final PropertiesFileResolver resolver = new SdncConfigEnvVarFileResolver("success"); - final Optional file = resolver.resolveFile("doesnotexist.cfg"); - assertFalse(file.isPresent()); - } - - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = new SdncConfigEnvVarFileResolver("success"); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibDefaultFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibDefaultFileResolverTest.java deleted file mode 100644 index 834a8c449..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibDefaultFileResolverTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package org.onap.ccsdk.sli.core.utils.dblib; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import java.io.File; -import java.util.Optional; -import org.junit.Test; -import org.onap.ccsdk.sli.core.utils.PropertiesFileResolver; - -public class DblibDefaultFileResolverTest { - - @Test - public void resolveFile() throws Exception { - final PropertiesFileResolver resolver = new DblibDefaultFileResolver("success"); - final Optional file = resolver.resolveFile("doesnotexist.cfg"); - assertFalse(file.isPresent()); - } - - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = new DblibDefaultFileResolver("success"); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file diff --git a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibEnvVarFileResolverTest.java b/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibEnvVarFileResolverTest.java deleted file mode 100644 index b5150ab67..000000000 --- a/utils/provider/src/test/java/org/onap/ccsdk/sli/core/utils/dblib/DblibEnvVarFileResolverTest.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.onap.ccsdk.sli.core.utils.dblib; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import java.io.File; -import java.util.Optional; -import org.junit.Test; -import org.onap.ccsdk.sli.core.utils.PropertiesFileResolver; - -public class DblibEnvVarFileResolverTest { - @Test - public void resolveFile() throws Exception { - final PropertiesFileResolver resolver = new DblibEnvVarFileResolver("success"); - final Optional file = resolver.resolveFile("doesnotexist.cfg"); - assertFalse(file.isPresent()); - } - - @Test - public void getSuccessfulResolutionMessage() throws Exception { - final PropertiesFileResolver resolver = new DblibEnvVarFileResolver("success"); - assertEquals("success", resolver.getSuccessfulResolutionMessage()); - } - -} \ No newline at end of file -- cgit 1.2.3-korg