Go to file
Chris Beams dfe05305e2 Upgrade to JUnit 4.11 snapshot in support of JDK7
Class#getDeclaredMembers returns arbitrary results under JDK7. This
results in non-deterministic execution of JUnit test methods, often
revealing unintended dependencies between methods that rely on a
specific order to succeed.

JUnit 4.11 contains support for predictable test ordering [1], but at
the time of this commit, JUnit 4.11 has not yet been released.
Therefore we are testing against a snapshot version [2], which has been
uploaded to repo.springsource.org [3] for easy access. Note that this
artifact may be removed when JUnit 4.11 goes GA.

 - Care has been taken to ensure that spring-test's compile-time
   dependency on JUnit remains at 4.10. This means that the spring-test
   pom.xml will continue to have an optional <dependency> on JUnit
   4.10, instead of the 4.11 snapshot.

 - For reasons not fully understood, the upgrade to the 4.11 snapshot
   of junit-dep caused NoSuchMethodErrors around certain Hamcrest
   types, particularly CoreMatchers and Matchers. import statements
   have been updated accordingly throughout affected test cases.

 - Runtime errors also occurred around uses of JUnit @Rule and
   ExpectedException. These have been reverted to use simpler
   mechanisms like @Test(expected) in the meantime.

 - Some test methods with order-based dependencies on one another have
   been renamed in order to fall in line with JUnit 4.11's new method
   ordering (as opposed to actually fixing the inter-test
   dependencies). In other areas, the fix was as simple as adding a
   tearDown method and cleaning up state.

 - For no apparent reason, the timeout in AspectJAutoProxyCreatorTests'
   testAspectsAndAdvisorNotAppliedToPrototypeIsFastEnough method begins
   to be exceeded. Prior to this commit the timeout value was 3000 ms;
   on the CI server under Linux/JDK6 and JDK7, the test begins taking
   anywhere from 3500-5500 ms with this commit. It is presumed that
   this is an incidental artifact of the upgrade to JUnit 4.11. In any
   case, there are no changes to src/main in this commit, so this
   should not actually represent a performance risk for Spring
   Framework users. The timeout has been increased to 6000 ms to
   accommodate this situation.

[1]: https://github.com/KentBeck/junit/pull/293
[2]: https://github.com/downloads/KentBeck/junit/junit-dep-4.11-SNAPSHOT-20120805-1225.jar
[3]: https://repo.springsource.org/simple/ext-release-local/junit/junit-dep/4.11.20120805.1225

Issue: SPR-9783
2012-09-11 15:04:56 +02:00
.settings/gradle Remove spring-asm and inline ASM 4 into spring-core 2012-08-10 00:36:49 +02:00
gradle/wrapper Upgrade to Gradle 1.1 GA 2012-08-08 08:46:04 +02:00
spring-aop/src Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
spring-aspects Update dependencies for spring-aspects 2012-06-01 15:35:29 +02:00
spring-beans/src Fix Windows-related build issues 2012-09-11 15:04:55 +02:00
spring-context Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
spring-context-support/src added "repeatCount" bean property to Quartz SimpleTriggerFactoryBean 2012-07-04 23:22:01 +02:00
spring-core/src Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
spring-expression Avoid NPE when registering a SpEL MethodFilter 2012-08-09 23:05:08 +02:00
spring-instrument/src
spring-instrument-tomcat/src
spring-jdbc/src Spring-backed DataSources consistently implement JDBC 4.0's Wrapper interface 2012-09-10 15:14:12 +02:00
spring-jms/src Update spring.schemas to reflect 3.2 schemas 2012-05-18 14:31:33 +03:00
spring-orm/src same-named unit from persistence.xml overrides in case of conflict with default unit 2012-09-10 15:14:11 +02:00
spring-oxm Optional @XmlRootElement check in Jaxb2Marshaller 2012-09-06 13:12:03 +02:00
spring-struts/src
spring-test Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
spring-tx/src Fix typo in TransactionManagementConfigurer Javadoc 2012-07-27 00:04:55 +02:00
spring-web/src Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
spring-webmvc/src Fix Windows-related build issues 2012-09-11 15:04:55 +02:00
spring-webmvc-portlet/src Polish PortletRequestUtilsTests 2012-09-11 15:04:55 +02:00
src Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
.gitignore Add Maven artifacts to .gitignore 2012-06-14 11:39:16 +01:00
README.md Work around apparent bug in README markdown parsing 2012-06-25 19:42:22 +02:00
build.gradle Upgrade to JUnit 4.11 snapshot in support of JDK7 2012-09-11 15:04:56 +02:00
gradle.properties Increment version to 3.2.0.BUILD-SNAPSHOT 2012-05-28 23:52:17 +03:00
gradlew
gradlew.bat Fix Windows-related build issues 2012-09-11 15:04:55 +02:00
import-into-eclipse.sh
import-into-idea.md
publish-maven.gradle
settings.gradle Remove spring-asm and inline ASM 4 into spring-core 2012-08-10 00:36:49 +02:00

README.md

Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

The framework also serves as the foundation for Spring Integration, Spring Batch and the rest of the Spring family of projects. Browse the repositories under the SpringSource organization on GitHub for a full list.

.NET and Python variants are available as well.

Downloading artifacts

See downloading Spring artifacts for Maven repository information. Unable to use Maven or other transitive dependency management tools? See building a distribution with dependencies.

Documentation

See the current Javadoc and reference docs.

Getting support

Check out the Spring forums and the spring and spring-mvc tags on Stack Overflow. Commercial support is available too.

Issue Tracking

Report issues via the Spring Framework JIRA. Understand our issue management process by reading about the lifecycle of an issue. Think you've found a bug? Please consider submitting a reproduction project via the spring-framework-issues GitHub repository. The readme there provides simple step-by-step instructions.

Building from source

The Spring Framework uses a Gradle-based build system. In the instructions below, ./gradlew is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build. The only prerequisites are Git and JDK 1.6+.

check out sources

git clone git://github.com/SpringSource/spring-framework.git

compile and test, build all jars, distribution zips and docs

./gradlew build

install all spring-* jars into your local Maven cache

./gradlew install

import sources into your IDE

Run ./import-into-eclipse.sh or read import-into-idea.md as appropriate.

... and discover more commands with ./gradlew tasks. See also the Gradle build and release FAQ.

Contributing

Pull requests are welcome; see the contributor guidelines for details.

Staying in touch

Follow @springframework and its team members on Twitter. In-depth articles can be found at the SpringSource team blog, and releases are announced via our news feed.

License

The Spring Framework is released under version 2.0 of the Apache License.