Search in sources :

Example 1 with ExtensionImportPage

use of org.xwiki.repository.test.po.ExtensionImportPage in project xwiki-platform by xwiki.

the class RepositoryTest method importExtension.

private ExtensionPage importExtension() throws Exception {
    ExtensionsPage extensionsPage = ExtensionsPage.gotoPage();
    ExtensionImportPage importPage = extensionsPage.clickImport();
    importPage.setExtensionId("maven:extension");
    importPage.setSourceRepository("maven-test");
    ExtensionPage extensionPage = importPage.clickImport();
    // Check
    Assert.assertEquals("1.1", extensionPage.getMetaDataValue("version"));
    Assert.assertTrue(extensionPage.isValidExtension());
    testRestAccessToImportedExtension();
    // Import again
    extensionPage = extensionPage.updateExtension();
    Assert.assertEquals("1.1", extensionPage.getMetaDataValue("version"));
    return extensionPage;
}
Also used : ExtensionImportPage(org.xwiki.repository.test.po.ExtensionImportPage) ExtensionsPage(org.xwiki.repository.test.po.ExtensionsPage) ExtensionPage(org.xwiki.repository.test.po.ExtensionPage)

Aggregations

ExtensionImportPage (org.xwiki.repository.test.po.ExtensionImportPage)1 ExtensionPage (org.xwiki.repository.test.po.ExtensionPage)1 ExtensionsPage (org.xwiki.repository.test.po.ExtensionsPage)1