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, Collection extends Grant>, Grant, GrantAssert> parameters() {
isNotNull();
return new FactoryBasedNavigableIterableAssert<>(
actual.getGrants(),
FactoryBasedNavigableIterableAssert.class, SchemaCrawlerAssertions::assertThat);
}
}