AW: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-09-01 Thread Soloschenko, Tobias
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:

Re: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-09-01 Thread Martin Grigorov
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

AW: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-09-01 Thread Soloschenko, Tobias
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:

Re: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-09-01 Thread Martin Grigorov
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,

AW: Partially include JSP files into Wicket-HTML-Pages via Custom Tag

2014-09-01 Thread Soloschenko, Tobias
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.

Unit tests that use wicket's session and spring session

2014-09-01 Thread mscoon
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

Re: Unit tests that use wicket's session and spring session

2014-09-01 Thread Martin Grigorov
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

Wicket / OAuth2

2014-09-01 Thread Sebastien
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