io.github.bekoenig.assertj.schemacrawler.api.AbstractPrimaryKeyAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-schemacrawler Show documentation
Show all versions of assertj-schemacrawler Show documentation
An assertj extension for schema-crawler.
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;
}
}