Skip to content

Commit

Permalink
Fold spring-test-mvc sources into spring-test
Browse files Browse the repository at this point in the history
With spring-test compiling against Servlet 3.0 it is no longer required
to compile Spring MVC Test sources separately (from spring-test).
  • Loading branch information
rstoyanchev committed Nov 5, 2013
1 parent 0eeb671 commit 2e57cf8
Show file tree
Hide file tree
Showing 137 changed files with 27 additions and 48 deletions.
57 changes: 22 additions & 35 deletions build.gradle
Expand Up @@ -780,12 +780,33 @@ project("spring-test") {
optional("javax.portlet:portlet-api:2.0")
optional("org.eclipse.persistence:javax.persistence:2.0.0")
optional("org.aspectj:aspectjweaver:${aspectjVersion}")
testCompile("org.hibernate:hibernate-core:3.6.9.Final")
provided("javax.inject:javax.inject:1")
provided("javax.activation:activation:1.1")
provided("javax.servlet:jstl:1.2")
optional("org.hamcrest:hamcrest-core:1.3")
optional("com.jayway.jsonpath:json-path:0.9.0")
optional("xmlunit:xmlunit:1.3")
testCompile(project(":spring-context-support"))
testCompile(project(":spring-oxm"))
testCompile(project(":spring-webmvc-tiles3"))
testCompile("org.hibernate:hibernate-core:3.6.9.Final")
testCompile "org.slf4j:slf4j-jcl:${slf4jVersion}"
testCompile("hsqldb:hsqldb:${hsqldbVersion}")
testCompile("org.hibernate:hibernate-validator:4.3.0.Final")
testCompile("org.codehaus.jackson:jackson-mapper-asl:1.9.12")
testCompile("com.fasterxml.jackson.core:jackson-databind:2.2.2")
testCompile("com.thoughtworks.xstream:xstream:1.4.4")
testCompile("rome:rome:1.0")
testCompile("javax.activation:activation:1.1")
testCompile("javax.mail:mail:1.4.7")
testCompile("org.apache.tiles:tiles-request-api:1.0.1")
testCompile("org.apache.tiles:tiles-api:3.0.1")
testCompile("org.apache.tiles:tiles-core:3.0.1") {
exclude group: "org.slf4j", module: "jcl-over-slf4j"
}
testCompile("org.apache.tiles:tiles-servlet:3.0.1") {
exclude group: "org.slf4j", module: "jcl-over-slf4j"
}
}

task testNG(type: Test) {
Expand All @@ -808,40 +829,6 @@ project("spring-test") {
}
}

project("spring-test-mvc") {
description = "Spring Test MVC Framework"
merge.into = project(":spring-test")

dependencies {
optional(project(":spring-context"))
provided(project(":spring-webmvc"))
provided(project(":spring-webmvc-tiles3"))
provided("javax.servlet:javax.servlet-api:3.0.1")
optional("org.hamcrest:hamcrest-core:1.3")
optional("com.jayway.jsonpath:json-path:0.9.0")
optional("xmlunit:xmlunit:1.3")
testCompile("org.slf4j:slf4j-jcl:${slf4jVersion}")
testCompile("javax.servlet:jstl:1.2")
testCompile("org.hibernate:hibernate-validator:4.3.0.Final")
testCompile("org.codehaus.jackson:jackson-mapper-asl:1.9.12")
testCompile("com.fasterxml.jackson.core:jackson-databind:2.2.2")
testCompile(project(":spring-context-support"))
testCompile(project(":spring-oxm"))
testCompile("com.thoughtworks.xstream:xstream:1.4.4")
testCompile("rome:rome:1.0")
testCompile("javax.activation:activation:1.1")
testCompile("javax.mail:mail:1.4.7")
testCompile("org.apache.tiles:tiles-request-api:1.0.1")
testCompile("org.apache.tiles:tiles-api:3.0.1")
testCompile("org.apache.tiles:tiles-core:3.0.1") {
exclude group: "org.slf4j", module: "jcl-over-slf4j"
}
testCompile("org.apache.tiles:tiles-servlet:3.0.1") {
exclude group: "org.slf4j", module: "jcl-over-slf4j"
}
}
}

project("spring-aspects") {
description = "Spring Aspects"
apply from: "aspects.gradle"
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Expand Up @@ -17,7 +17,6 @@ include "spring-orm"
include "spring-orm-hibernate4"
include "spring-oxm"
include "spring-test"
include "spring-test-mvc"
include "spring-tx"
include "spring-web"
include "spring-webmvc"
Expand Down
7 changes: 0 additions & 7 deletions spring-test-mvc/src/test/resources/log4j.properties

This file was deleted.

6 changes: 3 additions & 3 deletions src/asciidoc/index.adoc
Expand Up @@ -14307,7 +14307,7 @@ Registered filters will be invoked through `MockFilterChain` from `spring-test`

[[spring-mvc-test-server-resources]]
====== Further Server-Side Test Examples
The framework's own tests include https://github.com/SpringSource/spring-framework/tree/master/spring-test-mvc/src/test/java/org/springframework/test/web/servlet/samples[many sample tests] intended to demonstrate how to use Spring MVC Test. Browse these examples for further ideas. Also the https://github.com/SpringSource/spring-mvc-showcase[spring-mvc-showcase] has full test coverage based on Spring MVC Test.
The framework's own tests include https://github.com/SpringSource/spring-framework/tree/master/spring-test/src/test/java/org/springframework/test/web/servlet/samples[many sample tests] intended to demonstrate how to use Spring MVC Test. Browse these examples for further ideas. Also the https://github.com/SpringSource/spring-mvc-showcase[spring-mvc-showcase] has full test coverage based on Spring MVC Test.

[[spring-mvc-test-client]]
===== Client-Side REST Tests
Expand Down Expand Up @@ -14336,7 +14336,7 @@ Just like with server-side tests, the fluent API for client-side tests requires

[[spring-mvc-test-client-resources]]
====== Further Examples of Client-side REST Tests
Spring MVC Test's own tests include https://github.com/SpringSource/spring-framework/tree/master/spring-test-mvc/src/test/java/org/springframework/test/web/client/samples[example tests] of client-side REST tests.
Spring MVC Test's own tests include https://github.com/SpringSource/spring-framework/tree/master/spring-test/src/test/java/org/springframework/test/web/client/samples[example tests] of client-side REST tests.

[[testing-examples-petclinic]]
==== PetClinic Example
Expand Down Expand Up @@ -37196,4 +37196,4 @@ Renders an HTML 'textarea'.
| false
| true
| HTML Standard Attribute
|===
|===
4 changes: 2 additions & 2 deletions src/reference/docbook/testing.xml
Expand Up @@ -3583,7 +3583,7 @@ mockMvc.perform(get("/handle").accept(MediaType.APPLICATION_XML))
<title>Further Server-Side Test Examples</title>

<para>The framework's own tests include <link
xl:href="https://github.com/SpringSource/spring-framework/tree/master/spring-test-mvc/src/test/java/org/springframework/test/web/servlet/samples">many
xl:href="https://github.com/SpringSource/spring-framework/tree/master/spring-test/src/test/java/org/springframework/test/web/servlet/samples">many
sample tests</link> intended to demonstrate how to use Spring MVC
Test. Browse these examples for further ideas. Also the <link
xl:href="https://github.com/SpringSource/spring-mvc-showcase">spring-mvc-showcase</link>
Expand Down Expand Up @@ -3641,7 +3641,7 @@ mockServer.verify();</programlisting>
<title>Further Examples of Client-side REST Tests</title>

<para>Spring MVC Test's own tests include <link
xl:href="https://github.com/SpringSource/spring-framework/tree/master/spring-test-mvc/src/test/java/org/springframework/test/web/client/samples">example
xl:href="https://github.com/SpringSource/spring-framework/tree/master/spring-test/src/test/java/org/springframework/test/web/client/samples">example
tests</link> of client-side REST tests.</para>
</section>
</section>
Expand Down

0 comments on commit 2e57cf8

Please sign in to comment.