use of org.neo4j.kernel.impl.storemigration.legacy.SchemaStorage35 in project neo4j by neo4j.
the class SchemaRuleMigrationTest method setUp.
@BeforeEach
void setUp() {
srcTokenHolders = new TokenHolders(StoreTokens.createReadOnlyTokenHolder(TokenHolder.TYPE_PROPERTY_KEY), StoreTokens.createReadOnlyTokenHolder(TokenHolder.TYPE_LABEL), StoreTokens.createReadOnlyTokenHolder(TokenHolder.TYPE_RELATIONSHIP_TYPE));
src = mock(SchemaStorage35.class);
writtenRules = new ArrayList<>();
dst = new SchemaRuleMigrationAccess() {
@Override
public void writeSchemaRule(SchemaRule rule) {
writtenRules.add(rule);
}
@Override
public Iterable<SchemaRule> getAll() {
return List.of();
}
@Override
public void close() {
}
};
}
Aggregations