Package org.xwiki.test.ui.administration.elements

Examples of org.xwiki.test.ui.administration.elements.GlobalRightsAdministrationSectionPage.forceAuthenticatedView()


            // Test setup: disallow view right for unauthenticated users. We need to be logged as admin in order to
            // do that. Since this is not what we are testing use the fast way to log in
            GlobalRightsAdministrationSectionPage grasp = new GlobalRightsAdministrationSectionPage();
            getDriver().get(getUtil().getURLToLoginAsAdminAndGotoPage(grasp.getURL()));
            getUtil().recacheSecretToken();
            grasp.forceAuthenticatedView();

            // Go to a page, log out and expire session by removing cookies, log in again and verify that the user is
            // redirected to the initial page.
            ViewPage page = getUtil().gotoPage("SomeSpace", "SomePage");
            page.logout();
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.