use of edu.stanford.bmir.protege.web.shared.collection.CollectionItemData in project webprotege by protegeproject.
the class CollectionElementDataRepository_IT method shouldSaveEmptyCollectionElementData.
@Test
public void shouldSaveEmptyCollectionElementData() {
repository.save(new CollectionItemData(collectionId, elementId));
assertThat(datastore.getCount(CollectionItemData.class), is(1L));
}
use of edu.stanford.bmir.protege.web.shared.collection.CollectionItemData in project webprotege by protegeproject.
the class CollectionElementDataRepository_IT method shouldSaveNonEmptyCollectionElementData.
@Test
public void shouldSaveNonEmptyCollectionElementData() {
Map<FormElementId, FormDataValue> map = new HashMap<>();
map.put(FormElementId.get("theElement"), FormDataPrimitive.get("theValue"));
FormData formData = new FormData(map);
repository.save(new CollectionItemData(collectionId, elementId, formData));
assertThat(datastore.getCount(CollectionItemData.class), is(1L));
}
Aggregations