summaryrefslogtreecommitdiffstats
path: root/resource-assignment/provider/src/test
diff options
context:
space:
mode:
authorMarcus G K Williams <marcus.williams@intel.com>2017-09-01 15:41:27 -0700
committerMarcus G K Williams <marcus.williams@intel.com>2017-09-06 13:14:36 -0700
commit7703d8d1f66f7a3709f7d44202833cb8fe0e4274 (patch)
tree649ed3b4468a5379d09b2de1ac330a0afdd1ee54 /resource-assignment/provider/src/test
parent6fbbf0193e7389c80d85c205f1edd9af6ac0e431 (diff)
Enable surefire unit testing
Issue-Id: CCSDK-67 Change-Id: I955938365dd62b2125b73f8a668568e3343db015 Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
Diffstat (limited to 'resource-assignment/provider/src/test')
-rw-r--r--resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java23
1 files changed, 2 insertions, 21 deletions
diff --git a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java
index 5b942342..4dee2d61 100644
--- a/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java
+++ b/resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java
@@ -367,25 +367,6 @@ public class TestIsAvailable {
public void test011() throws Exception {
String t = "011";
log.info("============== isAvailable " + t + " ================================");
- log.info("=== Test input validations - no speed in input");
-
- SvcLogicContext ctx = new SvcLogicContext();
- ctx.setAttribute("tmp.resource-allocator.speed-unit", "Gbps");
- ctx.setAttribute("tmp.resource-allocator.aic-site-id", "MTSNJA4LCP1");
-
- try {
- resourceAllocator.isAvailable("NetworkCapacity", null, null, ctx);
- } catch (SvcLogicException e) {
- Assert.assertTrue(e.getMessage().equals("tmp.resource-allocator.speed is required in ResourceAllocator"));
- return;
- }
- Assert.fail("SvcLogicException expected");
- }
-
- @Test
- public void test012() throws Exception {
- String t = "012";
- log.info("============== isAvailable " + t + " ================================");
log.info("=== Test input validations - speed not a number in input");
SvcLogicContext ctx = new SvcLogicContext();
@@ -403,8 +384,8 @@ public class TestIsAvailable {
}
@Test
- public void test013() throws Exception {
- String t = "013";
+ public void test012() throws Exception {
+ String t = "012";
log.info("============== isAvailable " + t + " ================================");
log.info("=== Test input validations - speed-unit missing in input");