Remove aaa.web.tests 00/102400/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 16 Sep 2022 17:39:05 +0000 (19:39 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 16 Sep 2022 17:45:17 +0000 (19:45 +0200)
Unit tests should be in the same package, fix that up.

Change-Id: I6e41daecd47065be6fd60dc2eb8c57813861e3a8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
web/api/src/test/java/org/opendaylight/aaa/web/FilterDetailsTest.java [moved from web/api/src/test/java/org/opendaylight/aaa/web/tests/FilterDetailsTest.java with 90% similarity]
web/api/src/test/java/org/opendaylight/aaa/web/ServletDetailsTest.java [moved from web/api/src/test/java/org/opendaylight/aaa/web/tests/ServletDetailsTest.java with 90% similarity]
web/api/src/test/java/org/opendaylight/aaa/web/WebContextApiTest.java [moved from web/api/src/test/java/org/opendaylight/aaa/web/tests/WebContextApiTest.java with 94% similarity]

similarity index 90%
rename from web/api/src/test/java/org/opendaylight/aaa/web/tests/FilterDetailsTest.java
rename to web/api/src/test/java/org/opendaylight/aaa/web/FilterDetailsTest.java
index b5fea2900f98ac9641d707f342fc99cbeb6870e1..2fd6c20da363a817c2db589931dec52db754d0d4 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.aaa.web.tests;
+package org.opendaylight.aaa.web;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertThrows;
@@ -14,10 +14,8 @@ import static org.mockito.Mockito.mock;
 
 import javax.servlet.Filter;
 import org.junit.Test;
-import org.opendaylight.aaa.web.FilterDetails;
 
 public class FilterDetailsTest {
-
     @Test
     public void testDefaultValue() {
         FilterDetails filterDetails = FilterDetails.builder()
@@ -61,9 +59,6 @@ public class FilterDetailsTest {
 
     @Test
     public void testException() {
-        assertThrows(IllegalStateException.class, () -> {
-            FilterDetails.builder().build();
-        });
+        assertThrows(IllegalStateException.class, () -> FilterDetails.builder().build());
     }
-
 }
similarity index 90%
rename from web/api/src/test/java/org/opendaylight/aaa/web/tests/ServletDetailsTest.java
rename to web/api/src/test/java/org/opendaylight/aaa/web/ServletDetailsTest.java
index 5f20186072362db2bf2a9bc716f6c04f6a464402..a57a6c97a808b8b11f150214350e50f77a5f4766 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.aaa.web.tests;
+package org.opendaylight.aaa.web;
 
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertThrows;
@@ -14,10 +14,8 @@ import static org.mockito.Mockito.mock;
 
 import javax.servlet.Servlet;
 import org.junit.Test;
-import org.opendaylight.aaa.web.ServletDetails;
 
 public class ServletDetailsTest {
-
     @Test
     public void testDefaultValue() {
         ServletDetails servletDetails = ServletDetails.builder()
@@ -61,8 +59,6 @@ public class ServletDetailsTest {
 
     @Test
     public void testException() {
-        assertThrows(IllegalStateException.class, () -> {
-            ServletDetails.builder().build();
-        });
+        assertThrows(IllegalStateException.class, () -> ServletDetails.builder().build());
     }
 }
similarity index 94%
rename from web/api/src/test/java/org/opendaylight/aaa/web/tests/WebContextApiTest.java
rename to web/api/src/test/java/org/opendaylight/aaa/web/WebContextApiTest.java
index 9e225941d873690b43be13b7b74f03671eea2d26..12ae81413eb769a140e86ed32910dba04b7b56aa 100644 (file)
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.aaa.web.tests;
+package org.opendaylight.aaa.web;
 
 import static org.hamcrest.CoreMatchers.startsWith;
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -21,11 +21,6 @@ import javax.servlet.Servlet;
 import javax.servlet.ServletContextListener;
 import org.junit.Ignore;
 import org.junit.Test;
-import org.opendaylight.aaa.web.FilterDetails;
-import org.opendaylight.aaa.web.ServletDetails;
-import org.opendaylight.aaa.web.WebContext;
-import org.opendaylight.aaa.web.WebContextBuilder;
-import org.opendaylight.aaa.web.WebServer;
 
 /**
  * Tests for Web Server {@link WebContext} API. These tests don't test an