Enable surefire unit testing 25/10025/2
authorMarcus G K Williams <marcus.williams@intel.com>
Fri, 1 Sep 2017 22:41:27 +0000 (15:41 -0700)
committerMarcus G K Williams <marcus.williams@intel.com>
Wed, 6 Sep 2017 20:14:36 +0000 (13:14 -0700)
Issue-Id: CCSDK-67
Change-Id: I955938365dd62b2125b73f8a668568e3343db015
Signed-off-by: Marcus G K Williams <marcus.williams@intel.com>
pom.xml
resource-assignment/provider/src/test/java/jtest/org/onap/ccsdk/sli/adaptors/ra/TestIsAvailable.java
sql-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/sql/ITCaseSqlResource.java [moved from sql-resource/provider/src/test/java/org/onap/ccsdk/sli/adaptors/resource/sql/SqlResourceTest.java with 98% similarity]

diff --git a/pom.xml b/pom.xml
index f641ef5..eefdf04 100755 (executable)
--- a/pom.xml
+++ b/pom.xml
@@ -88,7 +88,7 @@
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>2.17</version>
                 <configuration>
-                    <skipTests>true</skipTests>
+                    <skipTests>false</skipTests>
                 </configuration>
             </plugin>
             <plugin>
index 5b94234..4dee2d6 100644 (file)
@@ -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");
 
@@ -34,10 +34,10 @@ import org.slf4j.LoggerFactory;
 
 import junit.framework.TestCase;
 
-public class SqlResourceTest extends TestCase {
+public class ITCaseSqlResource extends TestCase {
 
        private static final Logger LOG = LoggerFactory
-                       .getLogger(SqlResourceTest.class);
+                       .getLogger(ITCaseSqlResource.class);
 
 
        public void testExists() {