From: Jeff M. <cus...@us...> - 2003-05-14 15:15:16
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/1.3/com/mockobjects/helpers In directory sc8-pr-cvs1:/tmp/cvs-serv26017/src/j2ee/1.3/com/mockobjects/helpers Modified Files: TagTestHelper.java Log Message: Added better error information Index: TagTestHelper.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/j2ee/1.3/com/mockobjects/helpers/TagTestHelper.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- TagTestHelper.java 14 Oct 2002 22:58:28 -0000 1.1 +++ TagTestHelper.java 14 May 2003 15:15:11 -0000 1.2 @@ -86,7 +86,7 @@ * Invoke doInitBody on the test subject */ public void testDoInitBody() throws JspException { - Assert.assertTrue("Test subject not an instance of BodyTag", + Assert.assertTrue("doInitBody should not be called as test subject not an instance of BodyTag", testSubject instanceof BodyTag); ((BodyTag) testSubject).setBodyContent(bodyContent); @@ -98,7 +98,7 @@ * @param expectedValue value to check against doAfterBody */ public void assertDoAfterBody(int expectedValue) throws JspException { - Assert.assertTrue("Test subject not an instance of BodyTag", + Assert.assertTrue("doAfterTag should not be called as test subject not an instance of IterationTag", testSubject instanceof IterationTag); checkReturnValue("doAfterTag", expectedValue, ((IterationTag) testSubject).doAfterBody()); |