I am using tapestry-spring to inject spring beans into my tapestry
page classes, and would like to use PageTester to unit test the pages.
 I have reviewed the Unit Test documentation but don't see a way to
get access to these beans.  Can anyone offer a suggestion?

[note: I have also reviewed the pages at
http://wiki.apache.org/tapestry/Tapestry5SpringIntegration but can't
see how these help]

a simple example page class looks like:

public class Products {
        @Inject
        private IProductService _service;

        public List getProducts() {
              return _service.getProducts();
        }
}

where IProductService is a spring bean.  I'm using the

        <filter>
                <filter-name>app</filter-name>
                <!-- Special filter that adds in a T5 IoC module derived from 
the
Spring WebApplicationContext. -->
                <filter-class>
                        org.apache.tapestry.spring.TapestrySpringFilter
                </filter-class>
        </filter>

in my actual web application which provides access to the beans
great.. but how do I do the same thing w/ PageTester?

Thanks,
-Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to