Examples of startPage()


Examples of org.apache.wicket.util.tester.WicketTester.startPage()

    WicketTester tester = new WicketTester(new TestApplication());

    assertEquals(0, constructorsCalls.get());

    tester.startPage(new TestPage(constructorsCalls));

    assertEquals(1, constructorsCalls.get());

    tester.assertRenderedPage(TestPage.class);
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

        BeanMetaData meta = new BeanMetaData(SerializableBean.class, null, page, null, false);
        BeanForm form = new BeanForm("beanForm", beanModel, meta);

        page.add(form);
       
        tester.startPage(new ITestPageSource() {
            private static final long serialVersionUID = 1L;
            public Page getTestPage()
            {
                return page;
            }
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

        BeanMetaData meta = new BeanMetaData(SerializableBean.class, null, page, null, false);
        BeanForm form = new BeanForm("beanForm", Arrays.asList(beans), meta);

        page.add(form);
       
        tester.startPage(new ITestPageSource() {
            private static final long serialVersionUID = 1L;
            public Page getTestPage()
            {
                return page;
            }
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

        BeanMetaData meta = new BeanMetaData(nestedModel.getObject().getClass(), null, page, null, false);
        BeanForm form = new BeanForm("beanForm", nestedModel, meta);

        page.add(form);
       
        tester.startPage(new ITestPageSource() {
            private static final long serialVersionUID = 1L;
            public Page getTestPage()
            {
                return page;
            }
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

     * Tests basic Annotations
     */
    public void testBasicAnnotations()
    {
        WicketTester tester = new WicketTester();
        tester.startPage(AnnotationTestPage.class);
        Page page = tester.getLastRenderedPage();
       
        BeanMetaData beanMetaData = new BeanMetaData(AnnotationTestBean.class, null, page, null, false);
        // Check parameters, elements, element parameters, tabs, tab elements.
        assertFalse( beanMetaData.isViewOnly() );
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

     * Tests a context. Implicitly extends the default context.
     */
    public void testContext()
    {
        WicketTester tester = new WicketTester();
        tester.startPage(AnnotationTestPage.class);
        Page page = tester.getLastRenderedPage();
       
        // Use the "view" context
        BeanMetaData beanMetaData = new BeanMetaData(AnnotationTestBean.class, "view", page, null, false);
        // Check parameters, elements, element parameters, tabs, tab elements.
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

     * Tests basic parsing and info.
     */
    public void testBasicParsing()
    {
        WicketTester tester = new WicketTester();
        tester.startPage(BeanMetaDataTestPage.class);
        Page page = tester.getLastRenderedPage();
       
        BeanMetaDataTestBean bean = new BeanMetaDataTestBean();
        BeanMetaData beanMetaData = new BeanMetaData(BeanMetaDataTestBean.class, null, page, null, false);
        // Check parameters, elements, element parameters, tabs, tab elements.
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

     * Tests that defaults, with no beanprops, works.
     */
    public void testDefaults()
    {
        WicketTester tester = new WicketTester();
        tester.startPage(BeanMetaDataTestNoPropsPage.class);
        Page page = tester.getLastRenderedPage();
       
        BeanMetaDataTestBean bean = new BeanMetaDataTestBean();
        BeanMetaData beanMetaData = new BeanMetaData(BeanMetaDataTestBean.class, null, page, null, false);
        // Check parameters, elements, element parameters, tabs, tab elements.
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

     * Tests a context, without "extends". Implicitly extends the default context.
     */
    public void testContext()
    {
        WicketTester tester = new WicketTester();
        tester.startPage(BeanMetaDataTestPage.class);
        Page page = tester.getLastRenderedPage();
       
        BeanMetaDataTestBean bean = new BeanMetaDataTestBean();
        // Use the "view" context
        BeanMetaData beanMetaData = new BeanMetaData(BeanMetaDataTestBean.class, "view", page, null, false);
View Full Code Here

Examples of org.apache.wicket.util.tester.WicketTester.startPage()

     * Tests a context with "extends".
     */
    public void testContextWithExtends()
    {
        WicketTester tester = new WicketTester();
        tester.startPage(BeanMetaDataTestPage.class);
        Page page = tester.getLastRenderedPage();
       
        BeanMetaDataTestBean bean = new BeanMetaDataTestBean();
        // Use the "popupView" context
        BeanMetaData beanMetaData = new BeanMetaData(BeanMetaDataTestBean.class, "popupView", page, null, false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.