use of uk.gov.gchq.gaffer.graph.hook.FunctionAuthoriser 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