Try running it from your development editor and not from a command line and see what happens..
I run all of the unit tests via the eclipse junit plug-in with very good success.. It looks like something is truncating the expected / actual values. HTH.... Nick Neuberger > -----Original Message----- > From: Roger Rustin [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 14, 2004 8:38 PM > To: [EMAIL PROTECTED] > Subject: [Jwebunit-users] expected vs the real value > > > In the main page example the assetion statement is > assertTitleEquals("HttpUnit Home"); > > It works just fine. I changed the assertion statement to > assertTitleEquals("HttpUnit Home1"); I changed Home to Home1. Now the > test fails which is ok but the failure message is not complete. My > question is why don't I see the actual value that the application got. > > D:\eclipse\workspace\unittesting\bin>java javadude.AllTests > .F > Time: 3.024 > There was 1 failure: > 1) > testSearch(javadude.JWebUnitSearchExample)junit.framework.Comp > arisonFailure: > expected:<...1> but > was:<...> > at > net.sourceforge.jwebunit.WebTester.assertTitleEquals(WebTester > .java:91) > at > net.sourceforge.jwebunit.WebTestCase.assertTitleEquals(WebTest > Case.java:56) > at > javadude.JWebUnitSearchExample.testSearch(JWebUnitSearchExampl > e.java:30) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at javadude.AllTests.main(AllTests.java:19) > > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Jwebunit-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jwebunit-users > - - - - - - This e-mail message is intended only for the use of the individual or entity identified in the alias address of this message and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of this e-mail message is strictly prohibited. If you have received this e-mail message in error, please notify the sender immediately by reply e-mail and delete this message from your system. Thank you. ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Jwebunit-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jwebunit-users