Search in sources :

Example 1 with DataTypeStore

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);
}
Also used : DataTypeStackHash(org.kie.workbench.common.dmn.client.editors.types.listview.common.DataTypeStackHash) DataTypeStore(org.kie.workbench.common.dmn.client.editors.types.persistence.DataTypeStore) Before(org.junit.Before)

Example 2 with DataTypeStore

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);
}
Also used : DataTypeStore(org.kie.workbench.common.dmn.client.editors.types.persistence.DataTypeStore) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)2 DataTypeStore (org.kie.workbench.common.dmn.client.editors.types.persistence.DataTypeStore)2 DataTypeStackHash (org.kie.workbench.common.dmn.client.editors.types.listview.common.DataTypeStackHash)1