Search in sources :

Example 1 with JarBuilder

use of org.neo4j.kernel.impl.proc.JarBuilder in project neo4j by neo4j.

the class ProcedureIT method setUp.

@Before
public void setUp() throws IOException {
    exceptionsInProcedure.clear();
    new JarBuilder().createJarFor(plugins.newFile("myProcedures.jar"), ClassWithProcedures.class);
    new JarBuilder().createJarFor(plugins.newFile("myFunctions.jar"), ClassWithFunctions.class);
    db = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().setConfig(plugin_dir, plugins.getRoot().getAbsolutePath()).newGraphDatabase();
}
Also used : TestGraphDatabaseFactory(org.neo4j.test.TestGraphDatabaseFactory) JarBuilder(org.neo4j.kernel.impl.proc.JarBuilder) Before(org.junit.Before)

Example 2 with JarBuilder

use of org.neo4j.kernel.impl.proc.JarBuilder in project neo4j by neo4j.

the class UserAggregationFunctionIT method setUp.

@Before
public void setUp() throws IOException {
    new JarBuilder().createJarFor(plugins.newFile("myFunctions.jar"), ClassWithFunctions.class);
    db = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().setConfig(GraphDatabaseSettings.plugin_dir, plugins.getRoot().getAbsolutePath()).newGraphDatabase();
}
Also used : TestGraphDatabaseFactory(org.neo4j.test.TestGraphDatabaseFactory) JarBuilder(org.neo4j.kernel.impl.proc.JarBuilder) Before(org.junit.Before)

Example 3 with JarBuilder

use of org.neo4j.kernel.impl.proc.JarBuilder in project neo4j by neo4j.

the class UserFunctionIT method setUp.

@Before
public void setUp() throws IOException {
    exceptionsInFunction.clear();
    new JarBuilder().createJarFor(plugins.newFile("myFunctions.jar"), ClassWithFunctions.class);
    db = new TestGraphDatabaseFactory().newImpermanentDatabaseBuilder().setConfig(GraphDatabaseSettings.plugin_dir, plugins.getRoot().getAbsolutePath()).newGraphDatabase();
}
Also used : TestGraphDatabaseFactory(org.neo4j.test.TestGraphDatabaseFactory) JarBuilder(org.neo4j.kernel.impl.proc.JarBuilder) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)3 JarBuilder (org.neo4j.kernel.impl.proc.JarBuilder)3 TestGraphDatabaseFactory (org.neo4j.test.TestGraphDatabaseFactory)3