Hi,
There is a similar functionality in HtmlUnit [1]. Therefore it may require to
acces JWebUnit internal code so I don't know if all components have the needed
visibility.
Another solution is to use the same mecanism as JWebUnit JUnit tests. You can
load an HTML file or access an embedded web server that will be able to
generate the content your code is expecting.
[1]
http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/MockWebConnection.html
Regards,
Julien
>
>De : Stand Trooper <standtroo...@gmail.com>
>À : jwebunit-users@lists.sourceforge.net
>Envoyé le : Lun 15 Février 2010, 19 h 30 min 22 s
>Objet : [JWebUnit-users] Request Objects
>
>
>I've tried looking through the documentation and some of the archives for the
>mailing list. I'm looking to find out if there's a way to pass in a
>MockHttpRequest or some sort of mock request object so I can test specific
>portions of the code that require certain elements to be present.
>
>Any help would be greatly appreciated.
>
>thx
>
>timo
>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users