Hi Martin,
I build up a JUnit-Test for the project. I couldn't use the WicketTester,
because I need a full working, JSP supporting container. So I used jetty for
tests only:
I think it should be possible to use mocked MockServletContext that returns
a mock of RequestDispatcher that will return a hardcoded (JSP) response.
See
org.apache.wicket.util.tester.WicketTester#WicketTester(org.apache.wicket.protocol.http.WebApplication,
javax.servlet.ServletContext)
Martin
Yep, but this will not check if the Servlets / JSPs content is translated by
the tags, or do you think it is not required here?
kind regards
Tobias
-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org]
Gesendet: Montag, 1. September 2014 08:26
An:
I think it is OK to work with a mock response.
Jasper (the most used JSP compiler) has to have its own unit tests.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, Sep 1, 2014 at 9:32 AM, Soloschenko, Tobias
tobias.solosche...@rewe-group.com wrote:
Yep,
Hallo Martin,
thanks for your help. I changed the unit test and also will continue working on
some tag libraries to be used in JSP files rendered into wicket pages.
kind regards,
Tobias
-Ursprüngliche Nachricht-
Von: Martin Grigorov [mailto:mgrigo...@apache.org]
Gesendet: Montag, 1.
Hi all,
Might I ask if there are any pointers to writing tests for wicket that can
successfully access wicket's session (i.e. Session.get()) and spring's
session (i.e. use session scoped beans either by autowiring or using the
spring injector)?
Thanks
Marios
Hi,
WicketTester.getSession() returns the Wicket session. You can cast it to
your specialization.
Spring stores its session-scoped beans in as attributes in the http
session. There is a dummy http session in WicketTester tests so everything
should be fine. You don't need to do anything special
Hi all,
AFAIS, there is nothing about a OAuth2 client in Wicket out-of-the-box or
through a satellite project...
Does somebody knows a *simple* solution for integrating OAuth2 into Wicket
(like a OAuthWebApplication, or maybe a ready-to-use Filter, just giving
Consumer Key, Consumer Secret