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