use of org.kie.workbench.common.screens.defaulteditor.client.editor.NewFileUploader in project kie-wb-common by kiegroup.
the class AddAssetScreenTest method testOnOpen.
@Test
public void testOnOpen() {
NewResourceHandler rh1 = new NewFileUploader();
NewResourceHandler rh2 = new NewJavaFileTextHandler();
doReturn(Arrays.asList(rh1, rh2)).when(resourceHandlerManager).getNewResourceHandlers();
addAssetScreen.initialize();
addAssetScreen.onOpen();
assertEquals(1, addAssetScreen.newResourceHandlers.size());
assertEquals(rh2, addAssetScreen.newResourceHandlers.get(0));
}
Aggregations