Search in sources :

Example 1 with SchemaStorage35

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() {
        }
    };
}
Also used : SchemaStorage35(org.neo4j.kernel.impl.storemigration.legacy.SchemaStorage35) SchemaRule(org.neo4j.internal.schema.SchemaRule) TokenHolders(org.neo4j.token.TokenHolders) SchemaRuleMigrationAccess(org.neo4j.storageengine.migration.SchemaRuleMigrationAccess) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 SchemaRule (org.neo4j.internal.schema.SchemaRule)1 SchemaStorage35 (org.neo4j.kernel.impl.storemigration.legacy.SchemaStorage35)1 SchemaRuleMigrationAccess (org.neo4j.storageengine.migration.SchemaRuleMigrationAccess)1 TokenHolders (org.neo4j.token.TokenHolders)1