Collection syntax change because of Sonar
[aaf/authz.git] / auth / auth-locate / src / test / java / org / onap / aaf / auth / locate / validation / JU_LocateValidatorTest.java
index 80248d2..0339f31 100644 (file)
@@ -83,7 +83,7 @@ public class JU_LocateValidatorTest {
     public void testSubProtoCol() {\r
         LocateValidator validator = new LocateValidator();\r
 \r
-        List<String> subProtocol = new ArrayList<String>();\r
+        List<String> subProtocol = new ArrayList<>();\r
         subProtocol.add(null);\r
 \r
         when(endpoint.getName()).thenReturn("EndPoint.Endpoint1");\r
@@ -127,20 +127,20 @@ public class JU_LocateValidatorTest {
         when(endpoint.getHostname()).thenReturn("HOST1");\r
         when(endpoint.getPort()).thenReturn(9090);\r
         when(endpoint.getProtocol()).thenReturn("HTTP");\r
-        List<String> subprotocol = new ArrayList<String>();\r
+        List<String> subprotocol = new ArrayList<>();\r
         when(endpoint.getSubprotocol()).thenReturn(subprotocol);\r
 \r
-        List<Endpoint> endpointList = new ArrayList<Endpoint>();\r
+        List<Endpoint> endpointList = new ArrayList<>();\r
         endpointList.add(endpoint);\r
 \r
         when(mgmtEndpoint.getName()).thenReturn("EndPoint.Endpoint1");\r
         when(mgmtEndpoint.getHostname()).thenReturn("HOST1");\r
         when(mgmtEndpoint.getPort()).thenReturn(9090);\r
         when(mgmtEndpoint.getProtocol()).thenReturn("HTTP");\r
-        List<SpecialPorts> specialPorts = new ArrayList<SpecialPorts>();\r
+        List<SpecialPorts> specialPorts = new ArrayList<>();\r
         specialPorts.add(null);\r
         when(mgmtEndpoint.getSpecialPorts()).thenReturn(specialPorts);\r
-        List<MgmtEndpoint> mgmtEndpoints = new ArrayList<MgmtEndpoint>();\r
+        List<MgmtEndpoint> mgmtEndpoints = new ArrayList<>();\r
         mgmtEndpoints.add(mgmtEndpoint);\r
 \r
         when(endpoints.getEndpoint()).thenReturn(endpointList);\r
@@ -160,20 +160,20 @@ public class JU_LocateValidatorTest {
         when(mgmtEndpoint.getPort()).thenReturn(9090);\r
         when(mgmtEndpoint.getProtocol()).thenReturn("HTTP");\r
 \r
-        List<SpecialPorts> specialPorts = new ArrayList<SpecialPorts>();\r
+        List<SpecialPorts> specialPorts = new ArrayList<>();\r
         specialPorts.add(specialPort);\r
 \r
         when(specialPort.getName()).thenReturn("Port1");\r
         when(specialPort.getProtocol()).thenReturn("HTTP");\r
         when(specialPort.getPort()).thenReturn(9090);\r
 \r
-        List<String> versions = new ArrayList<String>();\r
+        List<String> versions = new ArrayList<>();\r
         versions.add("1");\r
 \r
         when(specialPort.getProtocolVersions()).thenReturn(versions);\r
 \r
         when(mgmtEndpoint.getSpecialPorts()).thenReturn(specialPorts);\r
-        List<MgmtEndpoint> mgmtEndpoints = new ArrayList<MgmtEndpoint>();\r
+        List<MgmtEndpoint> mgmtEndpoints = new ArrayList<>();\r
         mgmtEndpoints.add(mgmtEndpoint);\r
 \r
         when(me.getMgmtEndpoint()).thenReturn(mgmtEndpoints);\r