[
https://issues.apache.org/jira/browse/TAP5-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Balázs Palcsó updated TAP5-2273:
--------------------------------
Attachment: TapestryTestApplicationContext.java
TapestryGenericWebContextLoader.java
I implemented a WebContextLoader that is able to load a spring context mixed
with Bean definitions for tapestry modules. Please find the two classes
attached.
Here is the an example of usage of it:
{code:java}
import
org.apache.tapestry5.spring.test.context.web.TapestryGenericWebContextLoader;
import org.springframework.test.context.ContextConfiguration;
import
org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
import org.springframework.test.context.web.WebAppConfiguration;
@ContextConfiguration(loader = TapestryGenericWebContextLoader.class, locations
= { "classpath:WEB-INF/etc/Spring/applicationContext.xml",
"classpath:com/ajanlatotkapok/test/configuration/integrationTestingContext.xml"
})
@WebAppConfiguration
public abstract class TapestryContextTest extends
AbstractTransactionalJUnit4SpringContextTests {
}
{code}
I know this might exactly what you are after, but maybe it can be useful.
> TapestryIOCJunit4ClassRunner
> ----------------------------
>
> Key: TAP5-2273
> URL: https://issues.apache.org/jira/browse/TAP5-2273
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-test
> Reporter: Lance
> Priority: Minor
> Attachments: TapestryGenericWebContextLoader.java,
> TapestryTestApplicationContext.java
>
>
> Implement a TapestryIOCJunit4ClassRunner in a similar style to
> SpringJUnit4ClassRunner
> (http://docs.spring.io/spring/docs/2.5.6/api/org/springframework/test/context/junit4/SpringJUnit4ClassRunner.html)
--
This message was sent by Atlassian JIRA
(v6.2#6252)