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

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

package io.github.bekoenig.assertj.schemacrawler.api;

import org.assertj.core.api.FactoryBasedNavigableIterableAssert;
import schemacrawler.schema.DatabaseObject;
import schemacrawler.schema.Grant;
import schemacrawler.schema.Privilege;

import java.util.Collection;

public abstract class AbstractPrivilegeAssert<
        SELF extends AbstractPrivilegeAssert,
        ACTUAL extends Privilege,
        PARENT extends DatabaseObject>
        extends AbstractDependantObjectAssert {

    protected AbstractPrivilegeAssert(ACTUAL actual, Class selfType) {
        super(actual, selfType);
    }

    public FactoryBasedNavigableIterableAssert>, Grant, GrantAssert> parameters() {
        isNotNull();
        return new FactoryBasedNavigableIterableAssert<>(
                actual.getGrants(),
                FactoryBasedNavigableIterableAssert.class, SchemaCrawlerAssertions::assertThat);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy