use of org.neo4j.io.pagecache.CursorException in project neo4j by neo4j.
the class CompositePageCursorTest method checkAndClearCursorErrorMustThrowIfFirstCursorHasError.
@Test
public void checkAndClearCursorErrorMustThrowIfFirstCursorHasError() throws Exception {
PageCursor cursor = CompositePageCursor.compose(first, PAGE_SIZE, second, PAGE_SIZE);
first.setCursorException("boo");
try {
cursor.checkAndClearCursorException();
fail("composite cursor checkAndClearCursorError should have thrown");
} catch (CursorException e) {
assertThat(e.getMessage(), is("boo"));
}
}
Aggregations