Have you considered Mockito to mock your POJOs for the test data and
methods?
I use that in conjunction with TestNG and then start the wicket app
providing it mocked DAOs and POJOs.


On Sun, Dec 1, 2013 at 5:23 PM, Martin Dietze <d...@fh-wedel.de> wrote:

> On Sun, December 01, 2013, Martin Grigorov wrote:
>
> > In this case you may want to use Selenium/WebDriver tests.
> > Or any kind of robot that will execute your test scenarios against a
> > running web application.
>
>
> I am using geb for frontend tests. However frontend tests do not
> really help when testing complex cases within the business logic.
> As I wrote, one would normally create a test data generator to fill
> an in-memory database with stuff that you can rely on when
> running your tests. However due to the fact that this is a JEE
> application in which infrastructure like the database message
> queues etc. are provided by the container (glassfish) I would
> like to run tests against anonymised productive data.
>
> Thus I start the application within its JEE container with a fresh
> set of test data in the database and then run the test suite by
> wget-ing a page which runs my TestNG tests which have thus
> access to all those resources. As mentioned before, I am dealing
> with pre-spring/guice legacy code here, thus this is simply a
> pragmatic approach. In an ideal world I would not have to do
> this :)
>
> Cheers,
>
> M'bert
>
> --
> ----------- / http://herbert.the-little-red-haired-girl.org /
> -------------
> =+=
> * Free Speech Online!!! Support the Blue Ribbon Campaign! *
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to