use of org.uberfire.ext.metadata.event.IndexEvent in project kie-wb-common by kiegroup.
the class LibraryFileUpdateNotifierTest method buildIndexedEvent.
private IndexEvent.NewlyIndexedEvent buildIndexedEvent(final String pathStr) {
KObject kObject = mock(KObject.class);
doReturn(pathStr).when(kObject).getKey();
IndexEvent.NewlyIndexedEvent indexEvent = mock(IndexEvent.NewlyIndexedEvent.class);
doReturn(IndexEvent.Kind.NewlyIndexed).when(indexEvent).getKind();
doReturn(kObject).when(indexEvent).getKObject();
return indexEvent;
}
Aggregations