use of org.neo4j.test.extension.DbmsExtension in project neo4j by neo4j.
the class ConstraintCreationIT method shouldNotLeaveLuceneIndexFilesHangingAroundIfConstraintCreationFails.
@Test
@DbmsExtension(configurationCallback = "configureLuceneSubProvider")
void shouldNotLeaveLuceneIndexFilesHangingAroundIfConstraintCreationFails() {
// given
attemptAndFailConstraintCreation();
// then
IndexProvider indexProvider = indexProviderMap.getDefaultProvider();
Path indexDir = indexProvider.directoryStructure().directoryForIndex(indexId);
assertFalse(Files.exists(indexDir));
}
Aggregations