|
[HtmlUnit] CVS Commit: HtmlAreaTest.java: simplified code: msg#00050java.htmlunit.devel
Log Message: ----------- simplified code Modified Files: -------------- htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html: HtmlAreaTest.java (http://cvs.sourceforge.net/viewcvs.py/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlAreaTest.java) Revision Data ------------- Index: HtmlAreaTest.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlAreaTest.java,v retrieving revision 1.9 retrieving revision 1.10 diff -Lsrc/test/java/com/gargoylesoftware/htmlunit/html/HtmlAreaTest.java -Lsrc/test/java/com/gargoylesoftware/htmlunit/html/HtmlAreaTest.java -u -d -r1.9 -r1.10 --- src/test/java/com/gargoylesoftware/htmlunit/html/HtmlAreaTest.java +++ src/test/java/com/gargoylesoftware/htmlunit/html/HtmlAreaTest.java @@ -80,15 +80,9 @@ final WebClient client = new WebClient(); final MockWebConnection webConnection = new MockWebConnection( client ); - webConnection.setResponse( - URL_FIRST, firstContent, - 200, "OK", "text/html", Collections.EMPTY_LIST ); - webConnection.setResponse( - URL_SECOND, secondContent, - 200, "OK", "text/html", Collections.EMPTY_LIST ); - webConnection.setResponse( - URL_THIRD, thirdContent, - 200, "OK", "text/html", Collections.EMPTY_LIST ); + webConnection.setResponse(URL_FIRST, firstContent); + webConnection.setResponse(URL_SECOND, secondContent); + webConnection.setResponse(URL_THIRD, thirdContent); client.setWebConnection( webConnection ); return client; ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [HtmlUnit] CVS Commit: DomTextTest.java: added test for DomText.asText()..., mguillem |
|---|---|
| Next by Date: | [HtmlUnit] CVS Commit: htmlunit/html: centralised event handler call, preparing, mguillem |
| Previous by Thread: | [HtmlUnit] CVS Commit: DomTextTest.java: added test for DomText.asText()..., mguillem |
| Next by Thread: | [HtmlUnit] CVS Commit: htmlunit/html: centralised event handler call, preparing, mguillem |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |