Support session & request scoped beans in the TCF

This commit introduces RequestAndSessionScopedBeansWacTests which
verifies support for request and session scoped beans in the Spring
TestContext Framework (TCF).

This support was actually introduced as an intentional side effect of
the work performed for SPR-5243 through the addition of the new 
WebTestExecutionListener.

Issue: SPR-4588
This commit is contained in:
Sam Brannen
2012-10-13 19:50:31 +02:00
parent 0bb24f2922
commit 21ebbb9c02
5 changed files with 101 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="requestScopedTestBean" class="org.springframework.beans.TestBean" scope="request">
<property name="name" value="#{request.contextPath}" />
</bean>
<bean id="sessionScopedTestBean" class="org.springframework.beans.TestBean" scope="session" />
</beans>