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.ComparisonFailure:
expected:<...1> but
was:<...>
at
net.sourceforge.jwebunit.WebTester.assertTitleEquals(WebTester.java:91)
at
net.sourceforge.jwebunit.WebTestCase.assertTitleEquals(WebTestCase.java:56)
at
javadude.JWebUnitSearchExample.testSearch(JWebUnitSearchExample.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