summaryrefslogtreecommitdiffstats
path: root/saltstack-adapter/saltstack-adapter-provider/src
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-05-28 10:18:20 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-05-28 10:18:33 +0530
commitb96e26ca34255ee6560a03ba7a42a43eb994df51 (patch)
treea704fce23e2b500083ce1e040bddf9e21141ec6f /saltstack-adapter/saltstack-adapter-provider/src
parent664753e6041a39c6ff76ae8ffac3d850e7fe2a69 (diff)
added assert statements in 3 test classes
Issue-ID: CCSDK-2232 Change-Id: Ide54fa192c934dc40bb15034c8e5dbf2c2594f62 Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'saltstack-adapter/saltstack-adapter-provider/src')
-rw-r--r--saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/impl/TestSaltstackAdapterPropertiesProviderImpl.java13
-rw-r--r--saltstack-adapter/saltstack-adapter-provider/src/test/java/org/onap/ccsdk/adapter/model/TestJsonParser.java2
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)