Thx for the reply.  Basically, I need to pass an object I create to the
request as an attribute.  Basically, this isn't currently an implementation
within JWebUnit, that I can find.

Is this something that will be coming up on the roadmap for an
implementation?  I'd like to be able to use whatever kind of request object
I have (MockHttpServletRequest, easymock, whatever) to do this.  Ideally,
I'd like to do this through JWebUnit as it's our primary testing framework
for our frontend testing and not have to outline to developers a 2ndary
route for providing mock requests.  Currently, all freemarker work is being
tested with the spring frameworks, and JWebUnit was my first choice for
unified testing of our front end.



thx

timo

On Mon, Feb 15, 2010 at 12:50 PM, Julien HENRY <henr...@yahoo.fr> wrote:

> 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
>
>
------------------------------------------------------------------------------
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

Reply via email to