use of org.xwiki.uiextension.internal.WikiUIExtension in project xwiki-platform by xwiki.
the class WikiUIExtensionTest method createWikiUIExtension.
@Test
public void createWikiUIExtension() {
WikiUIExtension wikiUIX = new WikiUIExtension("roleHint", "id", "epId", objectReference, AUTHOR_REFERENCE, null);
wikiUIX.setScope(WikiComponentScope.WIKI);
Assert.assertEquals("roleHint", wikiUIX.getRoleHint());
Assert.assertEquals("id", wikiUIX.getId());
Assert.assertEquals("epId", wikiUIX.getExtensionPointId());
Assert.assertEquals(AUTHOR_REFERENCE, wikiUIX.getAuthorReference());
Assert.assertEquals(UIExtension.class, wikiUIX.getRoleType());
Assert.assertEquals(WikiComponentScope.WIKI, wikiUIX.getScope());
Assert.assertEquals(new WordBlock(""), wikiUIX.execute());
Assert.assertEquals(MapUtils.EMPTY_MAP, wikiUIX.getParameters());
}
Aggregations