use of org.neo4j.kernel.impl.storemigration.legacystore.LegacyStoreVersionCheck in project neo4j by neo4j.
the class MigrationTestUtils method allLegacyStoreFilesHaveVersion.
public static boolean allLegacyStoreFilesHaveVersion(FileSystemAbstraction fs, File dir, String version) {
final Iterable<StoreFile> storeFilesWithGivenVersions = Iterables.filter(ALL_EXCEPT_COUNTS_STORE, StoreFile.legacyStoreFilesForVersion(version));
LegacyStoreVersionCheck legacyStoreVersionCheck = new LegacyStoreVersionCheck(fs);
boolean success = true;
for (StoreFile storeFile : storeFilesWithGivenVersions) {
File file = new File(dir, storeFile.storeFileName());
success &= legacyStoreVersionCheck.hasVersion(file, version, storeFile.isOptional()).outcome.isSuccessful();
}
return success;
}
Aggregations