io.github.bekoenig.assertj.schemacrawler.api.AbstractSchemaAssert 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.Schema;
import java.util.function.Predicate;
public abstract class AbstractSchemaAssert<
SELF extends AbstractSchemaAssert,
ACTUAL extends Schema>
extends AbstractNamedObjectWithAttributesAssert {
protected AbstractSchemaAssert(ACTUAL actual, Class> selfType) {
super(actual, selfType);
}
public SELF matchesCatalogName(Predicate predicate) {
extracting(Schema::getCatalogName).matches(predicate);
return myself;
}
}