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

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

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

import schemacrawler.schema.PrimaryKey;
import schemacrawler.schema.TableConstraintType;

import java.util.function.Consumer;

public abstract class AbstractPrimaryKeyAssert>
        extends AbstractTableConstraintAssert {

    protected AbstractPrimaryKeyAssert(PrimaryKey actual, Class selfType) {
        super(actual, selfType);
    }

    public SELF satisfiesType(Consumer requirement) {
        extracting(PrimaryKey::getType).satisfies(requirement);
        return myself;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy