Dear List,
while migrating from version 1.2 to 1.3, i just stumbled over a nasty
problem:
In the old tests, i used to test downloading of a file by writing a
temporary file with known TEST_DATA, associating this with the download
link, press "download" and then grab the downloaded file, like:
clickLinkWithText(LINK_TEST_FILE);
assertEquals(TEST_DATA, getDialog().getResponseText());
This is a nifty way to check that files are correctly downloaded. BUT,
version 1.3 removed getResponseText() from the public API, and when i
try to dumpHTML() to a ByteArrayOutputStream, as Julien suggested, i get
punished with:
java.lang.RuntimeException: Unexpected content
Anybody has a workaround???
Thanks a lot,
Tom
--
____________________________________________
Brockmann Consult
Dipl.-Ing. Thomas Block
Max-Planck-Str. 2 / GITZ
21502 Geesthacht
Tel: +49 (0)4152 889 304
mailto:[EMAIL PROTECTED]
http://www.brockmann-consult.de
____________________________________________
-------------------------------------------------------------------------
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