Unit tests should be in the same package, fix that up.
Change-Id: I6e41daecd47065be6fd60dc2eb8c57813861e3a8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
* 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;
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()
@Test
public void testException() {
- assertThrows(IllegalStateException.class, () -> {
- FilterDetails.builder().build();
- });
+ assertThrows(IllegalStateException.class, () -> FilterDetails.builder().build());
}
-
}
* 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;
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()
@Test
public void testException() {
- assertThrows(IllegalStateException.class, () -> {
- ServletDetails.builder().build();
- });
+ assertThrows(IllegalStateException.class, () -> ServletDetails.builder().build());
}
}
* 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;
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