use of org.neo4j.kernel.api.proc.CallableProcedure in project neo4j by neo4j.
the class ProcedureJarLoaderTest method shouldLoadProcedureFromJarWithMultipleProcedureClasses.
@Test
public void shouldLoadProcedureFromJarWithMultipleProcedureClasses() throws Throwable {
// Given
URL jar = createJarFor(ClassWithOneProcedure.class, ClassWithAnotherProcedure.class, ClassWithNoProcedureAtAll.class);
// When
List<CallableProcedure> procedures = jarloader.loadProcedures(jar).procedures();
// Then
List<ProcedureSignature> signatures = procedures.stream().map(CallableProcedure::signature).collect(toList());
assertThat(signatures, containsInAnyOrder(procedureSignature("org", "neo4j", "kernel", "impl", "proc", "myOtherProcedure").out("someNumber", NTInteger).build(), procedureSignature("org", "neo4j", "kernel", "impl", "proc", "myProcedure").out("someNumber", NTInteger).build()));
}
Aggregations