Search in sources :

Example 1 with OfficeServerAdministrationSectionPage

use of org.xwiki.officeimporter.test.po.OfficeServerAdministrationSectionPage in project xwiki-platform by xwiki.

the class OfficeImporterTest method setUp.

@Before
public void setUp() {
    // Connect the wiki to the office server if it is not already done
    AdministrationPage administrationPage = AdministrationPage.gotoPage();
    administrationPage.clickSection("Content", "Office Server");
    OfficeServerAdministrationSectionPage officeServerAdministrationSectionPage = new OfficeServerAdministrationSectionPage();
    if (!"Connected".equals(officeServerAdministrationSectionPage.getServerState())) {
        officeServerAdministrationSectionPage.startServer();
        assertEquals("Connected", officeServerAdministrationSectionPage.getServerState());
    }
}
Also used : AdministrationPage(org.xwiki.administration.test.po.AdministrationPage) OfficeServerAdministrationSectionPage(org.xwiki.officeimporter.test.po.OfficeServerAdministrationSectionPage) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 AdministrationPage (org.xwiki.administration.test.po.AdministrationPage)1 OfficeServerAdministrationSectionPage (org.xwiki.officeimporter.test.po.OfficeServerAdministrationSectionPage)1