Hi,

Is anyone out there using easyb for testing pages?

I've tried writing a test using easyb and the BaseWicketTester since the WicketTester is for JUnit.

But I'm getting this error....when creating the new BaseWicketTester.

"a wicket tester." -- InjectorHolder has not been assigned an injector. Use InjectorHolder.setInjector() to assign an injector. In m ost cases this should be done once inside SpringWebApplication subclass's init() method.


scenario "The main page loads correctly.",
{
   given "a wicket tester.",
   {
       tester = new BaseWicketTester( )
   }
   then "we can render the main page.",
   {
       //
       //  start and render the test page
       //
       tester.startPage( MainPage.class )

   }
   and "the page loads correctly",
   {
       //
       //  assert rendered page class
       //
       tester.assertRenderedPage( MainPage.class )

       //
       //  assert rendered label component
       //
       tester.assertLabel( "myMessage", "Hello!" )
   }

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to