Hi Ryan, In both your examples, the assertion is performed on the client side (in endJSP()) so I don't think there is a server side vs client side stuff.
I don't see how the 2 tests are different they both call the same response.getText() method so there cannot be any difference. Maybe you're not executing both tests with the same environment? Thanks -Vincent > -----Original Message----- > From: Ryan Levering [mailto:[EMAIL PROTECTED] > Sent: lundi 6 septembre 2004 18:42 > To: [EMAIL PROTECTED] > Subject: endXXX problems > > Ok, I saw this was a thread back in April, but I am still stumped as it > seems like no one discovered the underlying issue. Obviously I'm setting > something up wrong. The issue is that response.getText is returning empty > strings. But the weird thing is that it doesn't always do it. For > example: > > public void testJSP() { > pageContext.include("/test.jsp"); > } > public void endJSP(WebResponse response) throws Exception { > throw new Exception(response.getText()); > } > > will throw an exception with the contents correct. > > However: > > public void testJSP() { > pageContext.include("/test.jsp"); > } > public void endJSP(WebResponse response) throws Exception { > assertTrue(response.getText().length() != 0); > } > > will fail. So I'm missing something with server vs. client side calling > of > assertions. > > Any help? > > Ryan Levering --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
