use of org.neo4j.tooling.procedure.testutils.ElementTestUtils in project neo4j by neo4j.
the class FieldVisitorTest method prepare.
@Before
public void prepare() {
elementTestUtils = new ElementTestUtils(compilationRule);
fieldVisitor = new FieldVisitor(compilationRule.getTypes(), compilationRule.getElements(), true);
}
use of org.neo4j.tooling.procedure.testutils.ElementTestUtils in project neo4j by neo4j.
the class UserAggregationFunctionVisitorTest method prepare.
@Before
public void prepare() {
Types types = compilationRule.getTypes();
Elements elements = compilationRule.getElements();
elementTestUtils = new ElementTestUtils(compilationRule);
final TypeMirrorUtils typeMirrorUtils = new TypeMirrorUtils(types, elements);
visitor = new UserAggregationFunctionVisitor(new FunctionVisitor<>(UserAggregationFunction.class, types, elements, typeMirrorUtils, function -> CustomNameExtractor.getName(function::name, function::value), false), types);
}
use of org.neo4j.tooling.procedure.testutils.ElementTestUtils in project neo4j by neo4j.
the class UserFunctionVisitorTest method prepare.
@Before
public void prepare() {
Types types = compilationRule.getTypes();
Elements elements = compilationRule.getElements();
elementTestUtils = new ElementTestUtils(compilationRule);
final TypeMirrorUtils typeMirrorUtils = new TypeMirrorUtils(types, elements);
visitor = new UserFunctionVisitor(new FunctionVisitor<>(UserFunction.class, types, elements, typeMirrorUtils, function -> CustomNameExtractor.getName(function::name, function::value), false));
}
use of org.neo4j.tooling.procedure.testutils.ElementTestUtils in project neo4j by neo4j.
the class ContextFieldVisitorTest method prepare.
@Before
public void prepare() {
elementTestUtils = new ElementTestUtils(compilationRule);
contextFieldVisitor = new ContextFieldVisitor(compilationRule.getTypes(), compilationRule.getElements(), false);
}
Aggregations