hello! I'm experiencing a sort of difficulty coping with testify.
I have the following: public class ServTest extends TapestryTest { private static final TapestryTester SHARED_TESTER = new TapestryTester("serv", "app", "src/main/webapp"); public ServTest() { super(SHARED_TESTER); } } public class SmokeTest extends ServTest { @ForComponents HttpServletRequest request; protected void setUpForAllTestMethods() { request = createNiceMock(HttpServletRequest.class); expect(request.getServerName()).andReturn("localhost"); expect(request.getServerPort()).andReturn(8080); expect(request.getContextPath()).andReturn("serv"); replay(request); } @Test public void smoke() { assertEquals(request.getServerName(), "localhost"); HttpServletRequest rs = tester.getService(HttpServletRequest.class); assertNotNull(rs); assertEquals(rs.getServerName(), "localhost"); ... skipped from here to the end ... Last assert fails, I can not understand why. @Inject works for tests, but not the @ForComponents. Or am I using it in a wrong way? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org