diff options
author | Dan Timoney <dtimoney@att.com> | 2017-09-06 23:15:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-06 23:15:43 +0000 |
commit | c3861f3219196626e9b6caffdbd0be6a96ffaf8e (patch) | |
tree | 0b66ede9c214d3648bf4442e60c18b1e874c9f89 /resource-assignment/provider | |
parent | e0c8895854715081c3c5a3917948075db3b4765b (diff) | |
parent | 7703d8d1f66f7a3709f7d44202833cb8fe0e4274 (diff) |
Merge "Enable surefire unit testing"
Diffstat (limited to 'resource-assignment/provider')
-rw-r--r-- | resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java | 23 |
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 5b9423422..4dee2d61e 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"); |