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

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy