Hi folks,
I'm trying to set up JWebUnit and write a basic test case. When I follow the
instructions here: http://jwebunit.sourceforge.net/quickstart.html, I get a
NullPointerException on the line:
setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
I see that at least one other person has had this problem (described here:
http://sourceforge.net/mailarchive/message.php?msg_id=36709542). However in
that case the problem was that there was a duplicate, older version of the
commons-httpclient jar. That isn't so in my case. Just to be sure I created
a new, empty project where the only jars on the classpath are the JWebUnit
ones.
In the release notes for Release 1.3-RC1 - june 27, 2006, it says: "Memory
leak in WebTestCase. Note: tester is no longer allocated at constructor
time, but just before 'setUp' is called. Fixes 972992. Thanks to Budi
Boentaran." Is this part of the problem? Is there something extra that needs
to be done to initialize the tester?
I notice that the import statements on the example in the quickstart guide
are incorrect, they are listed as:
import net.sourceforge.jwebunit.WebTestCase;
import net.sourceforge.jwebunit.TestingEngineRegistry;
When in fact they should be (at least for 1.4 RC3):
import net.sourceforge.jwebunit.junit.WebTestCase;
import net.sourceforge.jwebunit.util.TestingEngineRegistry;
This makes me think perhaps the quickstart guide is incorrect? Any pointers
or advice?
Thanks,
Jason
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users