Matt,
Glad you're getting a chance to go under the covers with T5. I'd like
to follow up on this issue ... but I'm working on some performance
improvements for T5 right now; hopefully we can check back next week.
Howard
On Wed, Dec 17, 2008 at 8:02 PM, mraible wrote:
>
> To complete this threa
To complete this thread, here's the source for both my unit and integration
tests. The test is the same for both, but the integration test uses Spring
instead of a mock implementation.
http://source.appfuse.org/browse/appfuse-light/trunk/tapestry/src/test/java/org/appfuse/web/pages
Please let me
Thanks, that works when I create a MockUserManagerImpl.
import org.apache.tapestry5.ioc.ServiceBinder;
import org.appfuse.service.UserManager;
public class MockTestModule {
public static void bind(final ServiceBinder binder) {
binder.bind(UserManager.class, MockUserManagerImpl.class
We use tapestry-spring and use PageTester to test our pages and this
is how we get around the Spring injection.
For testing we create a new AppModule (TestHarnessModule) that binds
some "dummy" classes for testing
TestHarnessModule.java
public static void bind(final ServiceBinder binder) {
Thiago H. de Paula Figueiredo wrote:
>
> Em Wed, 17 Dec 2008 14:20:26 -0300, mraible
> escreveu:
>
>> Is the following still the best way to inject Spring beans into a page
>> when testing?
>>
>> http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative1
>
> This page is quit
I have tapestry-spring in my pom.xml and TapestrySpringFilter in my web.xml,
but neither of those helps me with testing. The following test:
@Test
public void testListUsers() {
String appPackage = "org.appfuse.web";
String appName = "App";
PageTester tester = new P
Em Wed, 17 Dec 2008 14:20:26 -0300, mraible
escreveu:
Is the following still the best way to inject Spring beans into a page
when testing?
http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative1
This page is quite old . . . it talks about Tapestry 5.0.2, released at
leas
Is there a problem using tapestry-spring.jar?
Olle
2008/12/17 mraible
>
> Is the following still the best way to inject Spring beans into a page when
> testing?
>
> http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative1
>
> With Tapestry 4, I could populate a Map with with the b