use of uk.gov.gchq.gaffer.mapstore.SingleUseMapStore in project Gaffer by gchq.
the class AddElementsHandlerTest method shouldAddWithNoGroupByProperties.
@Test
public void shouldAddWithNoGroupByProperties() throws OperationException, StoreException {
// Given
final AddElements addElements = mock(AddElements.class);
given(addElements.getInput()).willReturn((Iterable) Arrays.asList(new Edge("group1")));
final Context context = mock(Context.class);
final MapStore store = new SingleUseMapStore();
store.initialise("graphId1", new Schema(), new MapStoreProperties());
final AddElementsHandler handler = new AddElementsHandler();
// When / Then - should not throw NPE
handler.doOperation(addElements, context, store);
}
Aggregations