Package org.jboss.seam.wicket.mock.SeamWicketTester

Examples of org.jboss.seam.wicket.mock.SeamWicketTester.DummySeamApplication.detach()


        // test first request in first conversation
        tester.startPage(ConversationTestPage.class);
        tester.assertRenderedPage(ConversationTestPage.class);
        tester.assertResultPage(ConversationTestPage.class, "ConversationTestPageExpected.html");
        // always detach request after all tests on current page
        application.detach();
        // test second request in first conversation
        tester.clickLink("refresh");

        tester.assertRenderedPage(ConversationTestPage.class);
        // without manually detaching the conversation scope is closed to early.
View Full Code Here


        // without manually detaching the conversation scope is closed to early.
        tester.assertLabel("headerLabel", "First conversation message");
        tester.assertLabel("spanLabel", "First conversation message");
        tester.assertLabel("refresh:number", "1");
        // always detach request after all tests on current page
        application.detach();

        // test first request in second conversation
        tester.startPage(ConversationTestPage.class);
        tester.assertRenderedPage(ConversationTestPage.class);
        tester.assertLabel("headerLabel", "Second conversation message");
View Full Code Here

        tester.assertRenderedPage(ConversationTestPage.class);
        tester.assertLabel("headerLabel", "Second conversation message");
        tester.assertLabel("spanLabel", "Second conversation message");
        tester.assertLabel("refresh:number", "0");
        // always detach request after all tests on current page
        application.detach();

        // test second request in second conversation
        tester.clickLink("refresh");
        tester.assertRenderedPage(ConversationTestPage.class);
        tester.assertLabel("headerLabel", "Second conversation message");
View Full Code Here

        tester.assertRenderedPage(ConversationTestPage.class);
        tester.assertLabel("headerLabel", "Second conversation message");
        tester.assertLabel("spanLabel", "Second conversation message");
        tester.assertLabel("refresh:number", "1");
        // always detach request after all tests on current page
        application.detach();
    }
}
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.