diff options
author | Dan Timoney <dtimoney@att.com> | 2020-06-01 14:42:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-06-01 14:42:36 +0000 |
commit | 3a7b70cb8476f5972196e1b4e5985ad9f1e827bb (patch) | |
tree | 57b8012ffb09db9eda342b0c420e676cf0405e5e /saltstack-adapter | |
parent | 4f524b5ed094abfa6bf8fec81254601c71706a17 (diff) | |
parent | b96e26ca34255ee6560a03ba7a42a43eb994df51 (diff) |
Merge "added assert statements in 3 test classes"
Diffstat (limited to 'saltstack-adapter')
2 files changed, 15 insertions, 0 deletions
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) |