Search in sources :

Example 1 with Procedures

use of org.neo4j.internal.kernel.api.Procedures in project neo4j by neo4j.

the class SchemaProcedureIT method testEmptyGraph.

@Test
void testEmptyGraph() throws Throwable {
    // Given the database is empty
    // When
    Procedures procs = procs();
    RawIterator<AnyValue[], ProcedureException> stream = procs.procedureCallRead(procs.procedureGet(procedureName("db", "schema", "visualization")).id(), new AnyValue[0], ProcedureCallContext.EMPTY);
    // Then
    assertThat(asList(stream)).containsExactly(new AnyValue[] { EMPTY_LIST, EMPTY_LIST });
}
Also used : Procedures(org.neo4j.internal.kernel.api.Procedures) ProcedureException(org.neo4j.internal.kernel.api.exceptions.ProcedureException) Test(org.junit.jupiter.api.Test) KernelIntegrationTest(org.neo4j.kernel.impl.api.integrationtest.KernelIntegrationTest)

Aggregations

Test (org.junit.jupiter.api.Test)1 Procedures (org.neo4j.internal.kernel.api.Procedures)1 ProcedureException (org.neo4j.internal.kernel.api.exceptions.ProcedureException)1 KernelIntegrationTest (org.neo4j.kernel.impl.api.integrationtest.KernelIntegrationTest)1