spring-projects/spring-integration — pull request #1306 by artembilan (2014-11-02 18:40:22+00:00)
Title: INT-3543: Remove `context.close()` from tests

JIRA: https://jira.spring.io/browse/INT-3543

Quoting Sam Brannen:

> However, one should *never* programmatically close the injected application context in a test,
since the Spring TestContext Framework caches all contexts across the entire JVM process.
If you need to close a context after a test method or test class for some reason,
the only supported and reliable mechanism is `@DirtiesContext`.

**Cherry-pick to 4.0.x**