Search in sources :

Example 1 with IndexEvent

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;
}
Also used : KObject(org.uberfire.ext.metadata.model.KObject) IndexEvent(org.uberfire.ext.metadata.event.IndexEvent) BatchIndexEvent(org.uberfire.ext.metadata.event.BatchIndexEvent)

Aggregations

BatchIndexEvent (org.uberfire.ext.metadata.event.BatchIndexEvent)1 IndexEvent (org.uberfire.ext.metadata.event.IndexEvent)1 KObject (org.uberfire.ext.metadata.model.KObject)1