summaryrefslogtreecommitdiffstats
path: root/resource-assignment/provider
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-06-01 14:41:50 +0000
committerGerrit Code Review <gerrit@onap.org>2020-06-01 14:41:50 +0000
commit4f524b5ed094abfa6bf8fec81254601c71706a17 (patch)
tree2a9c642655faed7d260688bb4f2bd498dfca67da /resource-assignment/provider
parent319ef7c25ee522d27396707ac6a9f5168ecd8820 (diff)
parenta19d05b4c780b5fbedf9724a60fa82786924901a (diff)
Merge "added assert statements in 7 test files"
Diffstat (limited to 'resource-assignment/provider')
-rw-r--r--resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestLockHelper.java2
-rw-r--r--resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java5
2 files changed, 7 insertions, 0 deletions
diff --git a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestLockHelper.java b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestLockHelper.java
index 6564dc3d1..a9389b279 100644
--- a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestLockHelper.java
+++ b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestLockHelper.java
@@ -10,6 +10,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+import static org.junit.Assert.assertNotNull;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:test-context.xml" })
@@ -34,6 +35,7 @@ public class TestLockHelper {
t1.join();
t2.join();
t3.join();
+ assertNotNull(t1);
}
private class LockThread extends Thread {
diff --git a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java
index f42ef9c3a..b159127b8 100644
--- a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java
+++ b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestReserve.java
@@ -28,6 +28,7 @@ import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import jtest.util.org.onap.ccsdk.sli.adaptors.ra.TestTable;
+import static org.junit.Assert.assertNotNull;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:test-context.xml" })
@@ -231,6 +232,7 @@ public class TestReserve {
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(rsList);
}
@@ -269,6 +271,7 @@ public class TestReserve {
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(sd);
}
@@ -316,6 +319,7 @@ public class TestReserve {
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(rr);
}
@@ -478,6 +482,7 @@ public class TestReserve {
rsList.forEach(r -> {
StrUtil.info(log, r);
});
+ assertNotNull(rsList);
}