Search in sources :

Example 1 with WikiBaseObjectComponentBuilder

use of org.xwiki.component.wiki.internal.bridge.WikiBaseObjectComponentBuilder in project xwiki-platform by xwiki.

the class WikiObjectComponentManagerEventListenerProxyTest method testRegisterObjectComponentsWithBaseObjectComponentBuilder.

@Test
public void testRegisterObjectComponentsWithBaseObjectComponentBuilder() throws Exception {
    BaseObjectReference objectReference = mock(BaseObjectReference.class);
    XWikiDocument source = mock(XWikiDocument.class);
    WikiBaseObjectComponentBuilder componentBuilder = mock(WikiBaseObjectComponentBuilder.class);
    this.testWithWikiObjectComponentBuilder(componentBuilder, objectReference, source);
    verify(componentBuilder, times(1)).buildComponents(any(BaseObject.class));
}
Also used : WikiBaseObjectComponentBuilder(org.xwiki.component.wiki.internal.bridge.WikiBaseObjectComponentBuilder) XWikiDocument(com.xpn.xwiki.doc.XWikiDocument) BaseObjectReference(com.xpn.xwiki.objects.BaseObjectReference) BaseObject(com.xpn.xwiki.objects.BaseObject) Test(org.junit.Test)

Aggregations

XWikiDocument (com.xpn.xwiki.doc.XWikiDocument)1 BaseObject (com.xpn.xwiki.objects.BaseObject)1 BaseObjectReference (com.xpn.xwiki.objects.BaseObjectReference)1 Test (org.junit.Test)1 WikiBaseObjectComponentBuilder (org.xwiki.component.wiki.internal.bridge.WikiBaseObjectComponentBuilder)1