io.github.bekoenig.assertj.schemacrawler.api.AbstractDatabaseObjectAssert Maven / Gradle / Ivy
package io.github.bekoenig.assertj.schemacrawler.api;
import schemacrawler.schema.DatabaseObject;
import schemacrawler.schema.Schema;
import java.util.function.Consumer;
public abstract class AbstractDatabaseObjectAssert<
SELF extends AbstractDatabaseObjectAssert,
ACTUAL extends DatabaseObject>
extends AbstractNamedObjectWithAttributesAssert {
protected AbstractDatabaseObjectAssert(ACTUAL actual, Class> selfType) {
super(actual, selfType);
}
public SELF satisfiesSchema(Consumer requirement) {
extracting(DatabaseObject::getSchema).satisfies(requirement);
return myself;
}
}