summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-06-01 14:42:36 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-01 14:42:36 +0000
commit3a7b70cb8476f5972196e1b4e5985ad9f1e827bb (patch)
tree57b8012ffb09db9eda342b0c420e676cf0405e5e
parent4f524b5ed094abfa6bf8fec81254601c71706a17 (diff)
parentb96e26ca34255ee6560a03ba7a42a43eb994df51 (diff)
Merge "added assert statements in 3 test classes"
-rw-r--r--resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestResourceLockNode.java3
-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
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 bfb9ad7e..dc0761c2 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 b03b0f78..88acc191 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 71798fbc..d4eafc1a 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)