THANK YOU! I was pulling my hair out, and since this was my first time with the WicketTester, i was totally thinking it was my use of the wicket classes.
Now i'm back to kicking ass! On 6/6/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > Hi Ryan, > > This explains it: > http://www.jroller.com/page/gridhaus?entry=maven2_testing_madness > > File it under "Ways in which maven hates me..." :) > > If you put this stanza in your pom, your test will work: > > <build> > ... > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-surefire-plugin</artifactId> > <configuration> > <excludes> > <exclude>**/*Panel*</exclude> > </excludes> > </configuration> > </plugin> > > best, > jim > > On 6/6/07, Ryan Sonnek <[EMAIL PROTECTED]> wrote: > > On 6/5/07, James McLaughlin <[EMAIL PROTECTED]> wrote: > > > Hi Ryan, > > > I don't think you can test it like that unless you have a default > > > constructor, and even then I don't think it will work (I'm a bit > > > spotty on this). What I have always done is this: > > > > > > tester.startPanel(new TestPanelSource () { > > > Panel getTestPanel(final String panelId) { > > > return new TestPanel(panelId); > > > } > > > }); > > > > > > Hope that fixes it for you. > > > > No luck. Using the TestPanelSource still has the same issues. I've > > also tried using tester.startPage() instead of using panels, and I > > still get the same exception: > > > > org.apache.maven.surefire.booter.SurefireExecutionException: There is > > no application attached to current thread main > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user