summaryrefslogtreecommitdiffstats
path: root/resource-assignment/provider/src
diff options
context:
space:
mode:
authorRupinder <rupinsi1@in.ibm.com>2020-05-27 15:11:12 +0530
committerRupinder <rupinsi1@in.ibm.com>2020-05-27 15:11:18 +0530
commita19d05b4c780b5fbedf9724a60fa82786924901a (patch)
tree4fb07f4be4ce6dc30250ad40151a7ee01c79c888 /resource-assignment/provider/src
parent664753e6041a39c6ff76ae8ffac3d850e7fe2a69 (diff)
added assert statements in 7 test files
Issue-ID: CCSDK-2232 Change-Id: I07e3806cac9a317130ad1d5fe4c9af4fb1a17a5d Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'resource-assignment/provider/src')
-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 6564dc3d..a9389b27 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 f42ef9c3..b159127b 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);
}