Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Fix servlet API dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Oct 15, 2012
1 parent b03226a commit ca7ea7f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
29 changes: 28 additions & 1 deletion pom.xml
Expand Up @@ -87,11 +87,23 @@
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl-api</artifactId>
<version>1.2</version>
</dependency>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>jstl-impl</artifactId>
<version>1.2</version>
<exclusions>
<exclusion>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- Jackson JSON Processor -->
Expand Down Expand Up @@ -191,6 +203,21 @@
<target>${java-version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<includes>
<include>**/*Tests.java</include>
</includes>
<excludes>
<exclude>**/Abstract*.java</exclude>
</excludes>
<junitArtifactName>junit:junit</junitArtifactName>
<argLine>-Xmx512m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand Down
Expand Up @@ -40,7 +40,7 @@ public void setup() throws Exception {
public void request() throws Exception {
this.mockMvc.perform(get("/data/standard/request"))
.andExpect(content().string(startsWith(
"request = org.springframework.mock.web.MockHttpServletRequest@")));
"request = org.springframework.test.web.mock.servlet.request.Servlet3MockHttpServletRequest@")));
}

@Test
Expand Down

0 comments on commit ca7ea7f

Please sign in to comment.