All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.bekoenig.assertj.schemacrawler.api.AbstractIndexColumnAssert Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package io.github.bekoenig.assertj.schemacrawler.api;

import schemacrawler.schema.Index;
import schemacrawler.schema.IndexColumn;
import schemacrawler.schema.IndexColumnSortSequence;

import java.util.function.Consumer;
import java.util.function.Predicate;

public class AbstractIndexColumnAssert>
        extends AbstractKeyColumnAssert {

    protected AbstractIndexColumnAssert(IndexColumn actual, Class selfType) {
        super(actual, selfType);
    }

    public SELF satisfiesIndex(Consumer requirement) {
        extracting(IndexColumn::getIndex).satisfies(requirement);
        return myself;
    }

    public SELF matchesIndexOrdinalPosition(Predicate predicate) {
        extracting(IndexColumn::getIndexOrdinalPosition).matches(predicate);
        return myself;
    }

    public SELF satisfiesSortSequence(Consumer requirement) {
        extracting(IndexColumn::getSortSequence).satisfies(requirement);
        return myself;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy