diff options
3 files changed, 18 insertions, 0 deletions
diff --git a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestResourceLockNode.java b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestResourceLockNode.java index bfb9ad7e4..dc0761c20 100644 --- a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestResourceLockNode.java +++ b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestResourceLockNode.java @@ -2,6 +2,8 @@ package jtest.org.onap.ccsdk.sli.adaptors.ra; import java.util.HashMap; import java.util.Map; + +import org.junit.Assert; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; @@ -32,5 +34,6 @@ public class TestResourceLockNode { resourceLockNode.lockResource(paramMap, null); resourceLockNode.unlockResource(paramMap, null); + Assert.assertNotNull(paramMap); } } diff --git a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java index b03b0f785..88acc1919 100644 --- a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java +++ b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java @@ -34,6 +34,7 @@ import org.onap.ccsdk.sli.core.sli.SvcLogicException; import java.util.Properties; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertNotNull; public class TestSaltstackAdapterPropertiesProviderImpl { @@ -65,6 +66,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test(expected = SvcLogicException.class) @@ -101,6 +103,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(adapter); } @Test @@ -116,6 +119,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test(expected = SvcLogicException.class) @@ -152,6 +156,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -167,6 +172,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -185,6 +191,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -200,6 +207,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -218,6 +226,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -236,6 +245,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @@ -251,6 +261,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -268,6 +279,7 @@ public class TestSaltstackAdapterPropertiesProviderImpl { } }; adapter = new SaltstackAdapterImpl(propProvider); + assertNotNull(propProvider); } @Test @@ -293,5 +305,6 @@ public class TestSaltstackAdapterPropertiesProviderImpl { public void reqExecCommand_setPropertiesDefault() throws SvcLogicException, IllegalStateException, IllegalArgumentException { adapter = new SaltstackAdapterImpl(); + assertNotNull(adapter); } } diff --git a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java index 71798fbc8..d4eafc1a0 100644 --- a/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java +++ b/saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java @@ -35,6 +35,7 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; +import static org.junit.Assert.assertNotNull; public class TestJsonParser { @@ -55,6 +56,7 @@ public class TestJsonParser { logProperties(mm); in.close(); + assertNotNull(mm); } @Test(expected = NullPointerException.class) |