Providing the source class and its corresponding Test class package com.bsideinc.bsidecom.wicket.pages.sections;
import com.bsideinc.bsidecom.wicket.pages.DefaultBsidePage; /** * User: gutter * Date: Feb 8, 2007 * Time: 1:38:03 PM */ public class DefaultHomePage extends DefaultBsidePage { public static final String HOME = "home"; public String getSection() { return HOME; } public String getTitle() { return "B-Side Home"; } } Test Class package com.bsideinc.bsidecom.wicket.pages.sections; import wicket.util.tester.WicketTester; import junit.framework.TestCase; public class TestDefaultHomePage extends TestCase{ //private DefaultHomePage testDeafDefaultHomePage = new DefaultHomePage(); private WicketTester tester; public TestDefaultHomePage(){ super ("Test DefaultHomePage class"); } protected void setUp(){ tester = new WicketTester(); } public void testgetTitle(){ tester.startPage(DefaultHomePage.class); tester.assertRenderedPage(DefaultHomePage.class); //tester.assertNoErrorMessage(); //System.out.println("********" + testDeafDefaultHomePage.getTitle() ); } } -- View this message in context: http://www.nabble.com/Getting-error-java.lang.ClassCastException%3A-wicket.util.tester.WicketTester-tf3638328.html#a10159802 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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