- 21 4月, 2015 1 次提交
-
-
由 Sam Brannen 提交于
Since the ContextCache is now a published SPI, it and its collaborators have been moved to a dedicated 'org.sfw.test.context.cache' subpackage. Issue: SPR-12683
-
- 20 4月, 2015 12 次提交
-
-
由 Stephane Nicoll 提交于
This is a rework of fd7153ff that also now clears the reference to the BeanFactory when the context is disposed. Issue: SPR-12518
-
由 Sebastien Deleuze 提交于
Issue: SPR-12597
-
由 Juergen Hoeller 提交于
If a custom MessageConverter is set, it is not used for replies defined via the Message abstraction. This commit harmonizes the behaviour of the `MessagingMessageConverter` so that the conversion of the payload can be converted for both incoming and outgoing messages. Issue: SPR-12912
-
由 Stephane Nicoll 提交于
Previously, a custom `DestinationResolver` was not made available to the underlying `MessageListener`: if a reply needs to be sent, the default `DestinationResolver` was used. This commit ensures that if a custom `DestinationResolver` has been set, it is also configured accordingly for replies. Issue: SPR-12927
-
由 Sebastien Deleuze 提交于
Issue: SPR-12931
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
This commit adds an assertion to DefaultTestContext's getApplicationContext() method to ensure that a context loaded by the Spring TestContext Framework (TCF) or retrieved from the ContextCache is still active. This extra check helps to avoid situations where developers manually close a cached context instead of relying on the @DirtiesContext support. Issue: SPR-12932
-
由 Sam Brannen 提交于
The changes made in 0cb22fc8 would result in contexts not being properly closed if evicted from the ConcurrentReferenceHashMap by the Garbage Collector. This commit reverts those changes and returns to using standard ConcurrentHashMaps for the time being. Issue: SPR-7687
-
由 Sam Brannen 提交于
Issue: SPR-12683
-
由 Sam Brannen 提交于
Improve extensibility of TestContext bootstrapping & context caching These commits include numerous refactorings and enhancements to the bootstrapping and context caching mechanisms in the Spring TestContext Framework. Issue: SPR-12683
-
由 Sam Brannen 提交于
- DefaultBootstrapContext and DefaultCacheAwareContextLoaderDelegate are now public classes in the 'support' subpackage. - Introduced getCacheAwareContextLoaderDelegate() in AbstractTestContextBootstrapper as an extension point for configuring custom ContextCache support. - Introduced reflection-based createBootstrapContext() utility method in BootstrapUtils; TestContextManager now delegates to BootstrapUtils in order to avoid package cycles. - Introduced logStatistics() method in the ContextCache API and defined statistics logging category as a constant. - DefaultCacheAwareContextLoaderDelegate now delegates to ContextCache.logStatistics(). Issue: SPR-12683
-
由 Sam Brannen 提交于
- ContextCache is now a public interface. - Introduced public DefaultContextCache implementation in the 'support' subpackage. Issue: SPR-12683
-
- 19 4月, 2015 6 次提交
-
-
由 Sam Brannen 提交于
Issue: SPR-12683
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
This commit moves the responsibility of building a TestContext from the TestContextManager to a TestContextBootstrapper. In addition, DefaultTestContext is now a public class residing in the "support" subpackage. Issue: SPR-12683
-
由 Sam Brannen 提交于
Issue: SPR-12683
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
- 18 4月, 2015 2 次提交
-
-
由 Sam Brannen 提交于
Prior to this commit, the ContextCache in the Spring TestContext Framework (TCF) cached ApplicationContexts in a ConcurrentHashMap using strong references. This practice can occasionally lead to OutOfMemoryErrors when running a large number of tests in a test suite with varying context configuration since the context cache becomes overpopulated over time. This commit addresses this issue by using Spring's ConcurrentReferenceHashMap which uses SoftReferences for both the keys (i.e., MergedContextConfiguration instances) and values (i.e., ApplicationContexts) stored in the map that backs the ContextCache. Issue: SPR-7687
-
由 Sam Brannen 提交于
-
- 17 4月, 2015 14 次提交
-
-
由 Rossen Stoyanchev 提交于
This change adds support for broadcasting messages with unresolved user destinations so that other servers can try to resolve it. That enables sending messages to users who may be connected to a different server. Issue: SPR-11620
-
由 Rossen Stoyanchev 提交于
Issue: SPR-11620
-
由 Sam Brannen 提交于
Prior to this commit, ClassLevelDirtiesContextTests existed for verifying the expected behavior of @DirtiesContext declared at the class level in conjunction with JUnit and SpringJUnit4ClassRunner. This commit introduces analogous tests for TestNG in the new ClassLevelDirtiesContextTestNGTests class. Furthermore, ContextCacheTestUtils and TrackingTestNGTestListener have been introduced to reduce code duplication across the test suite. Issue: SPR-12918
-
由 Sam Brannen 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-11841
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
Issue: SPR-12890
-
由 Juergen Hoeller 提交于
Issue: SPR-12925
-
由 Stephane Nicoll 提交于
-
由 Stephane Nicoll 提交于
The attributes of @JmsListener allows to specify the reference to a key in the Environment but @SendTo did not. This commit fixes this inconsistency so that response destinations are now also externally configurable. Issue: SPR-12899
-
由 Juergen Hoeller 提交于
AbstractApplicationContext collects early ApplicationEvents and publishes them once the multicaster is available Issue: SPR-12902
-
由 Juergen Hoeller 提交于
Issue: SPR-12900
-
由 Juergen Hoeller 提交于
Issue: SPR-12905
-
- 16 4月, 2015 4 次提交
-
-
由 Stephane Nicoll 提交于
Previously, the "pubSubDomain" drove the resolution of both the destination of the listener and the default response destination. A new "replyPubSubDomain" attribute has been added on the base listener and can be used to listen on a topic and reply to a queue (or vice versa). The attribute is exposed via the "response-destination-type" XML attribute on the listener container element. It is also available on the JmsListenerContainerFactory for use with the @JmsListener infrastructure. Issue: SPR-12911
-
由 Juergen Hoeller 提交于
Issue: SPR-12905
-
由 Juergen Hoeller 提交于
Issue: SPR-12915
-
由 Sam Brannen 提交于
-
- 15 4月, 2015 1 次提交
-
-
由 Juergen Hoeller 提交于
-