use of org.neo4j.internal.counts.GBPTreeCountsStore.NO_MONITOR in project neo4j by neo4j.
the class GBPTreeGenericCountsStoreTest method shouldNotStartWithoutFileIfReadOnly.
@Test
void shouldNotStartWithoutFileIfReadOnly() {
final Path file = directory.file("non-existing");
final IllegalStateException e = assertThrows(IllegalStateException.class, () -> new GBPTreeCountsStore(pageCache, file, fs, immediate(), CountsBuilder.EMPTY, readOnly(), PageCacheTracer.NULL, NO_MONITOR, DEFAULT_DATABASE_NAME, randomMaxCacheSize()));
assertTrue(Exceptions.contains(e, t -> t instanceof ReadOnlyDbException));
assertTrue(Exceptions.contains(e, t -> t instanceof TreeFileNotFoundException));
assertTrue(Exceptions.contains(e, t -> t instanceof IllegalStateException));
}
Aggregations