use of org.kie.workbench.common.dmn.api.editors.types.DataObject in project kie-wb-common by kiegroup.
the class ImportDataObjectModalTest method testOnDataObjectSelectionChangedAndHasDuplicatedName.
@Test
public void testOnDataObjectSelectionChangedAndHasDuplicatedName() {
final String name1 = "name1";
final String name2 = "name2";
final String name3 = "name3";
final List<String> existingDataTypes = Arrays.asList(name1, name2, name3);
final DataObject do1 = createDataObject(name1);
final DataObject do2 = createDataObject(name2);
final DataObject do3 = createDataObject(name3);
final List<DataObject> dataObjects = Arrays.asList(do1, do2, do3);
doReturn(existingDataTypes).when(modal).getExistingDataTypes();
modal.onDataObjectSelectionChanged(dataObjects);
verify(view).showDataTypeWithSameNameWarning();
verify(view, never()).hideDataTypeWithSameNameWarning();
}
Aggregations