use of org.kie.workbench.common.dmn.client.editors.types.persistence.DataTypeStore in project kie-wb-common by kiegroup.
the class DataTypeListTest method setup.
@Before
public void setup() {
dataTypeStore = new DataTypeStore();
dataTypeStackHash = new DataTypeStackHash(dataTypeStore);
dataTypeList = spy(new DataTypeList(view, listItems, dataTypeManager, searchBar, dndListComponent, dataTypeStackHash, dndDataTypesHandler, highlightHelper));
when(listItems.get()).thenReturn(treeGridItem);
}
use of org.kie.workbench.common.dmn.client.editors.types.persistence.DataTypeStore in project kie-wb-common by kiegroup.
the class DataTypeStackHashTest method setup.
@Before
public void setup() {
dataTypeStore = new DataTypeStore();
dataTypeStackHash = new DataTypeStackHash(dataTypeStore);
tCity = makeDataType("001", "tCity", TOP_LEVEL_PARENT_UUID);
tCityId = makeDataType("002", "id", tCity.getUUID());
tCityName = makeDataType("003", "name", tCity.getUUID());
tPerson = makeDataType("004", "tPerson", TOP_LEVEL_PARENT_UUID);
tPersonId = makeDataType("005", "id", tPerson.getUUID());
tPersonName = makeDataType("006", "name", tPerson.getUUID());
tPersonCity = makeDataType("007", "city", tPerson.getUUID());
tPersonCityId = makeDataType("008", "id", tPersonCity.getUUID());
tPersonCityName = makeDataType("009", "name", tPersonCity.getUUID());
index(tCity, tCityId, tCityName, tPerson, tPersonId, tPersonName, tPersonCity, tPersonCityId, tPersonCityName);
}
Aggregations