use of uk.gov.gchq.gaffer.graph.hook.NamedViewResolver in project Gaffer by gchq.
the class GraphSerialisableTest method setUp.
@BeforeEach
public void setUp() throws Exception {
config = new GraphConfig.Builder().graphId("testGraphId").addHook(new NamedViewResolver()).addHook(new FunctionAuthoriser(FunctionAuthoriserUtil.DEFAULT_UNAUTHORISED_FUNCTIONS)).view(new View.Builder().entity("e1").build()).build();
schema = new Schema.Builder().entity("e1", new SchemaEntityDefinition.Builder().vertex("string").build()).type("string", String.class).build();
final StoreProperties storeProperties = new StoreProperties();
storeProperties.setStoreClass(TestStore.class);
properties = storeProperties.getProperties();
expected = new GraphSerialisable.Builder().schema(schema).properties(properties).config(config).build();
}
use of uk.gov.gchq.gaffer.graph.hook.NamedViewResolver in project Gaffer by gchq.
the class MapStorePropertiesGraphSerialisableTest method setUp.
@BeforeEach
public void setUp() throws Exception {
config = new GraphConfig.Builder().graphId("testGraphId").addHook(new NamedViewResolver()).addHook(new FunctionAuthoriser(FunctionAuthoriserUtil.DEFAULT_UNAUTHORISED_FUNCTIONS)).view(new View.Builder().entity("e1").build()).build();
schema = new Schema.Builder().entity("e1", new SchemaEntityDefinition.Builder().vertex("string").build()).type("string", String.class).build();
final MapStoreProperties storeProperties = new MapStoreProperties();
storeProperties.setStorePropertiesClass(MapStoreProperties.class);
properties = storeProperties.getProperties();
expected = getGraphSerialisable();
}
Aggregations