Michael, I already use RegistryBuilder in some of my tests. It allows me to test services, but in this case I'm working with my application using Java API.
With SeleniumTestCase I can trigger my application handlers using HTTP requests via Selenium. In this case my application already running and it has constructed Registry instance and I'd like to get that instance somehow. I'm looking at implementation of SeleniumTestCase and see that there's not API for obtaining that Registry instance directly. Though, I can see that instance in debugger in my IDE, I think I'll use reflection to get it. On Tue, Apr 16, 2013 at 6:50 PM, Michael Prescott < michael.r.presc...@gmail.com> wrote: > You can use the RegistryBuilder to instantiate your tapestry services via > Tapestry IOC, I'm finding that very handy. That's described here: > > http://tapestry.apache.org/starting-the-ioc-registry.html > > > On 16 April 2013 10:38, Dmitry Gusev <dmitry.gu...@gmail.com> wrote: > > > I'm writing integration tests (using SeleniumTestCase) and want to make > > assertions against database state. > > > > I was thinking about getting one of my DAO services (or JPA > > EntityManager/Source) and use it to run queries. > > > > Is it possible somehow? Or should I just write another client code that > > would access database from integration tests? > > > > -- > > Dmitry Gusev > > > > AnjLab Team > > http://anjlab.com > > > -- Dmitry Gusev AnjLab Team http://anjlab.com