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

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

package io.github.bekoenig.assertj.schemacrawler.api;

import schemacrawler.schema.Sequence;

import java.math.BigInteger;
import java.util.function.Predicate;

public abstract class AbstractSequenceAssert>
        extends AbstractDatabaseObjectAssert {

    protected AbstractSequenceAssert(Sequence actual, Class selfType) {
        super(actual, selfType);
    }

    public SELF matchesIncrement(Predicate predicate) {
        extracting(Sequence::getIncrement).matches(predicate);
        return myself;
    }

    public SELF matchesMaximumValue(Predicate predicate) {
        extracting(Sequence::getMaximumValue).matches(predicate);
        return myself;
    }

    public SELF matchesMinimumValue(Predicate predicate) {
        extracting(Sequence::getMinimumValue).matches(predicate);
        return myself;
    }

    public SELF matchesStartValue(Predicate predicate) {
        extracting(Sequence::getStartValue).matches(predicate);
        return myself;
    }

    public SELF isCycle(boolean expected) {
        return returns(expected, Sequence::isCycle);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy