Bael 1601 redirects (#4006)

* tidy pom
move classes to javax-servlets

* move into spring-mvc-simple

* updated POM to handle no default tests in module
This commit is contained in:
pauljervis 2018-04-15 18:22:42 +01:00 committed by GitHub
parent e0738b0752
commit fb4c450a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 34 additions and 27 deletions

View File

@ -3,7 +3,6 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>javax-servlets</artifactId>
<version>1.0-SNAPSHOT</version>
@ -13,8 +12,6 @@
<version>1.0.0-SNAPSHOT</version>
</parent>
<dependencies>
<dependency>
@ -35,6 +32,12 @@
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.0.5.RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<properties>

View File

@ -5,7 +5,6 @@
<groupId>org.baeldung</groupId>
<artifactId>spring-boot-bootstrap</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>spring-boot-bootstrap</name>

View File

@ -1,17 +1,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.baeldung</groupId>
<artifactId>spring-mvc-simple</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Spring MVC simple Maven Webapp</name>
<url>http://maven.apache.org</url>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<parent>
<groupId>com.baeldung</groupId>
<artifactId>parent-modules</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
@ -19,7 +19,7 @@
<springframework.version>5.0.2.RELEASE</springframework.version>
<maven-war-plugin.version>3.2.0</maven-war-plugin.version>
<maven.compiler.version>3.7.0</maven.compiler.version>
<maven-surefire-plugin.version>2.20</maven-surefire-plugin.version>
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>
<jstl.version>1.2</jstl.version>
<javax.servlet.jsp-api.version>2.3.2-b02</javax.servlet.jsp-api.version>
<javax.servlet-api.version>4.0.0</javax.servlet-api.version>
@ -172,6 +172,14 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<executions>
<execution>
<id>default-test</id>
<configuration>
<skip>true</skip>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.junit.platform</groupId>

View File

@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung.spring.servlets;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;

View File

@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung.spring.servlets;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;

View File

@ -1,4 +1,4 @@
package org.baeldung;
package com.baeldung.spring.servlets;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;

View File

@ -1,5 +1,4 @@
package org.baeldung;
package com.baeldung.spring.servlets;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;

View File

@ -1,13 +1,12 @@
package org.baeldung;
package com.baeldung.spring.servlets;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import javax.servlet.ServletException;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class HelloServletTest {
@Test

View File

@ -1,13 +1,12 @@
package org.baeldung;
package com.baeldung.spring.servlets;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.mock.web.MockHttpServletResponse;
import javax.servlet.ServletException;
import java.io.IOException;
import static org.junit.Assert.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class WelcomeServletTest {
@Test