Package org.xwiki.test.ui.appwithinminutes

Source Code of org.xwiki.test.ui.appwithinminutes.AbstractClassEditorTest

/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.xwiki.test.ui.appwithinminutes;

import org.junit.Before;
import org.xwiki.appwithinminutes.test.po.ApplicationClassEditPage;
import org.xwiki.test.ui.AbstractAdminAuthenticatedTest;

/**
* Base class for testing the application class editor.
*
* @version $Id: 79d82097367050b87e0bccf8c8afa046a20be7ef $
* @since 3.5
*/
public abstract class AbstractClassEditorTest extends AbstractAdminAuthenticatedTest
{
    /**
     * The page being tested.
     */
    protected ApplicationClassEditPage editor;

    @Before
    @Override
    public void setUp() throws Exception
    {
        super.setUp();

        getUtil().deleteSpace(getTestClassName());
        getUtil().gotoPage(getTestClassName(), getTestMethodName(), "edit",
            "editor=inline&template=AppWithinMinutes.ClassTemplate&title=" + getTestMethodName() + " Class");
        editor = new ApplicationClassEditPage();
    }
}
TOP

Related Classes of org.xwiki.test.ui.appwithinminutes.AbstractClassEditorTest

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.