Fix Compilation issue in TestServiceCatalog 53/26553/2
authorMichal Kabaj <michal.kabaj@nokia.com>
Tue, 19 Dec 2017 13:36:59 +0000 (14:36 +0100)
committerMichal Kabaj <michal.kabaj@nokia.com>
Wed, 20 Dec 2017 11:23:03 +0000 (12:23 +0100)
Remove duplicate mockito-core test dependency in appc-iaas-adapter-bundle
pom.xml and remove unused imports.

Issue-ID: APPC-359
Change-Id: I119460f36ee0cedae0129419e55c134a105a8cd7
Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/pom.xml
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/test/java/org/onap/appc/adapter/iaas/impl/TestServiceCatalog.java

index 0459bc2..6fdf2ba 100644 (file)
             <scope>compile</scope>
         </dependency>
 
-        <dependency>
-            <groupId>org.mockito</groupId>
-            <artifactId>mockito-core</artifactId>
-            <scope>test</scope>
-        </dependency>
-
         <dependency>
             <groupId>org.glassfish.jersey.core</groupId>
             <artifactId>jersey-common</artifactId>
             <scope>compile</scope>
         </dependency>
 
-<dependency>
-<groupId>org.mockito</groupId>
-<artifactId>mockito-core</artifactId>
-<scope>test</scope>
-</dependency>
 
         <dependency>
             <groupId>org.glassfish.jersey.core</groupId>
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
-
-
+        <dependency>
+            <groupId>org.mockito</groupId>
+            <artifactId>mockito-core</artifactId>
+            <scope>test</scope>
+        </dependency>
 
         <!-- <dependency> -->
         <!-- <groupId>equinoxSDK381</groupId> -->
index c1a41f2..53b4c78 100644 (file)
 
 package org.onap.appc.adapter.iaas.impl;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertTrue;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Properties;
-import java.util.Set;
-import java.util.concurrent.locks.ReentrantReadWriteLock;
+import com.att.cdp.exceptions.ZoneException;
 import org.junit.Before;
 import org.junit.BeforeClass;
-import org.junit.Ignore;
 import org.junit.Test;
-import org.mockito.Mockito;
 import org.onap.appc.configuration.ConfigurationFactory;
-import com.att.cdp.exceptions.ZoneException;
-import com.woorea.openstack.keystone.model.Access.Service;
+
+import java.util.HashSet;
+import java.util.Properties;
+import java.util.Set;
+import java.util.concurrent.locks.ReentrantReadWriteLock;
+
+import static org.junit.Assert.assertEquals;
+import static org.mockito.Mockito.CALLS_REAL_METHODS;
+import static org.mockito.Mockito.mock;
 
 /**
  * This class tests the service catalog against a known provider.
@@ -87,7 +84,7 @@ public class TestServiceCatalog {
     @Before
     public void setup() throws ZoneException {
         properties = new Properties();
-        catalog = Mockito.mock(ServiceCatalog.class, Mockito.CALLS_REAL_METHODS);
+        catalog = mock(ServiceCatalog.class, CALLS_REAL_METHODS);
         catalog.rwLock = new ReentrantReadWriteLock();
 
         Set<String> testdata = new HashSet<>();