use of uk.gov.gchq.gaffer.rest.factory.ExamplesFactory in project Gaffer by gchq.
the class OperationControllerTest method setUpController.
@BeforeEach
public void setUpController() {
store = mock(Store.class);
graphFactory = mock(GraphFactory.class);
userFactory = mock(UserFactory.class);
examplesFactory = mock(ExamplesFactory.class);
operationController = new OperationController(graphFactory, userFactory, examplesFactory);
when(store.getSchema()).thenReturn(new Schema());
when(store.getProperties()).thenReturn(new StoreProperties());
Graph graph = new Graph.Builder().config(new GraphConfig("id")).store(store).addSchema(new Schema()).build();
when(graphFactory.getGraph()).thenReturn(graph);
}
Aggregations