Search in sources :

Example 1 with NodeConsistencyReport

use of org.neo4j.consistency.report.ConsistencyReport.NodeConsistencyReport in project neo4j by neo4j.

the class NodeCheckerTest method shouldReportNodeLabelHigherThanInt.

@Test
void shouldReportNodeLabelHigherThanInt() throws Exception {
    // given
    try (AutoCloseable ignored = tx()) {
        NodeRecord node = new NodeRecord(nodeStore.nextId(CursorContext.NULL)).initialize(true, NULL, false, NULL, 0x171f5bd081L);
        nodeStore.updateRecord(node, CursorContext.NULL);
    }
    // when
    check();
    // then
    expect(NodeConsistencyReport.class, NodeConsistencyReport::illegalLabel);
}
Also used : NodeRecord(org.neo4j.kernel.impl.store.record.NodeRecord) NodeConsistencyReport(org.neo4j.consistency.report.ConsistencyReport.NodeConsistencyReport) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 NodeConsistencyReport (org.neo4j.consistency.report.ConsistencyReport.NodeConsistencyReport)1 NodeRecord (org.neo4j.kernel.impl.store.record.NodeRecord)1