use of org.kie.workbench.common.screens.library.api.ProjectAssetsQuery in project kie-wb-common by kiegroup.
the class PopulatedAssetsScreenTest method testOnAssetsUpdate.
@Test
public void testOnAssetsUpdate() throws Exception {
final UpdatedAssetsEvent mockedEvent = mock(UpdatedAssetsEvent.class);
final ProjectAssetsQuery mockedQuery = mock(ProjectAssetsQuery.class);
doReturn(mockedQuery).when(populatedAssetsScreen).createProjectQuery("", "ALL", 0, 0);
populatedAssetsScreen.init();
populatedAssetsScreen.onAssetsUpdated(mockedEvent);
verify(assetQueryService).getNumberOfAssets(mockedQuery);
}
Aggregations