Search in sources :

Example 1 with TypeMirrorTestUtils

use of org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils in project neo4j by neo4j.

the class RecordFieldTypeVisitorTest method prepare.

@Before
public void prepare() {
    Elements elements = compilationRule.getElements();
    types = compilationRule.getTypes();
    typeMirrorUtils = new TypeMirrorUtils(types, elements);
    typeMirrorTestUtils = new TypeMirrorTestUtils(compilationRule);
}
Also used : TypeMirrorTestUtils(org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils) Elements(javax.lang.model.util.Elements) TypeMirrorUtils(org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils) Before(org.junit.Before)

Example 2 with TypeMirrorTestUtils

use of org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils in project neo4j by neo4j.

the class ParameterTypeVisitorTest method prepare.

@Before
public void prepare() {
    Elements elements = compilationRule.getElements();
    types = compilationRule.getTypes();
    typeMirrorUtils = new TypeMirrorUtils(types, elements);
    typeMirrorTestUtils = new TypeMirrorTestUtils(compilationRule);
}
Also used : TypeMirrorTestUtils(org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils) Elements(javax.lang.model.util.Elements) TypeMirrorUtils(org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils) Before(org.junit.Before)

Example 3 with TypeMirrorTestUtils

use of org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils in project neo4j by neo4j.

the class RecordTypeVisitorTest method prepare.

@Before
public void prepare() {
    Types types = compilation.getTypes();
    Elements elements = compilation.getElements();
    TypeMirrorUtils typeMirrors = new TypeMirrorUtils(types, elements);
    typeMirrorTestUtils = new TypeMirrorTestUtils(compilation);
    visitor = new RecordTypeVisitor(types, typeMirrors);
}
Also used : Types(javax.lang.model.util.Types) TypeMirrorTestUtils(org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils) Elements(javax.lang.model.util.Elements) TypeMirrorUtils(org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils) Before(org.junit.Before)

Example 4 with TypeMirrorTestUtils

use of org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils in project neo4j by neo4j.

the class AllowedTypesValidatorTest method prepare.

@Before
public void prepare() {
    Types types = compilation.getTypes();
    Elements elements = compilation.getElements();
    TypeMirrorUtils typeMirrors = new TypeMirrorUtils(types, elements);
    typeMirrorTestUtils = new TypeMirrorTestUtils(compilation);
    validator = new AllowedTypesValidator(typeMirrors, types);
}
Also used : Types(javax.lang.model.util.Types) TypeMirrorTestUtils(org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils) Elements(javax.lang.model.util.Elements) TypeMirrorUtils(org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils) Before(org.junit.Before)

Aggregations

Elements (javax.lang.model.util.Elements)4 Before (org.junit.Before)4 TypeMirrorUtils (org.neo4j.tooling.procedure.compilerutils.TypeMirrorUtils)4 TypeMirrorTestUtils (org.neo4j.tooling.procedure.testutils.TypeMirrorTestUtils)4 Types (javax.lang.model.util.Types)2