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;
}
Aggregations