diff options
Diffstat (limited to 'ms/neng/src/test/java')
-rw-r--r-- | ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/gen/NameGeneratorExcMissingDataTest.java (renamed from ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/gen/NameGeneratorExcMissingData.java) | 2 | ||||
-rw-r--r-- | ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/seq/SequenceGeneratorTest.java (renamed from ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/seq/TestSequenceGenerator.java) | 2 | ||||
-rw-r--r-- | ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceIntTest.java | 15 |
3 files changed, 8 insertions, 11 deletions
diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/gen/NameGeneratorExcMissingData.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/gen/NameGeneratorExcMissingDataTest.java index 4b1d1eac..d05644b8 100644 --- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/gen/NameGeneratorExcMissingData.java +++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/gen/NameGeneratorExcMissingDataTest.java @@ -44,7 +44,7 @@ import org.onap.ccsdk.apps.ms.neng.core.validator.AaiNameValidator; import org.onap.ccsdk.apps.ms.neng.core.validator.DbNameValidator; @RunWith(MockitoJUnitRunner.class) -public class NameGeneratorExcMissingData { +public class NameGeneratorExcMissingDataTest { @Mock private PolicyParameters policyParams = mock(PolicyParameters.class); @Mock diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/seq/TestSequenceGenerator.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/seq/SequenceGeneratorTest.java index fcee4da0..23bbc7c0 100644 --- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/seq/TestSequenceGenerator.java +++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/seq/SequenceGeneratorTest.java @@ -36,7 +36,7 @@ import org.onap.ccsdk.apps.ms.neng.persistence.repository.ServiceParameterReposi @RunWith(MockitoJUnitRunner.class) -public class TestSequenceGenerator { +public class SequenceGeneratorTest { @Mock private GeneratedNameRespository genNameRepo = mock(GeneratedNameRespository.class); @Mock diff --git a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceIntTest.java b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceIntTest.java index a1873692..c3815f43 100644 --- a/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceIntTest.java +++ b/ms/neng/src/test/java/org/onap/ccsdk/apps/ms/neng/core/service/SpringServiceIntTest.java @@ -33,6 +33,7 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.Response; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -195,18 +196,14 @@ public class SpringServiceIntTest { } @Test - public void testRestGetPolicyResponse() throws Exception { - List<Map<String, Object>> policyResponse = - restServiceImpl.getPolicyResponse("JQINSRIOV.Config_MS_SriovBigJson.1.xml"); - assertNotNull(policyResponse); - } - - @Test public void testRestAddPolicyToDb() throws Exception { Map<String, Object> policy = new HashMap<>(); - policy.put("policyName", "policyname"); - policy.put("policyValue", "policyname"); + policy.put("policyName", "JQINSRIOV.Config_MS_SriovBigJson.1.xml"); + policy.put("policyValue", "some policy"); restServiceImpl.addPolicyToDb(policy); + + Response policyResponse = restServiceImpl.getPolicyResponse("JQINSRIOV.Config_MS_SriovBigJson.1.xml"); + assertNotNull(policyResponse); } @Test |