io.github.bekoenig.assertj.schemacrawler.api.AbstractRoutineParameterAssert Maven / Gradle / Ivy
package io.github.bekoenig.assertj.schemacrawler.api;
import schemacrawler.schema.ParameterModeType;
import schemacrawler.schema.Routine;
import schemacrawler.schema.RoutineParameter;
import java.util.function.Predicate;
public class AbstractRoutineParameterAssert<
SELF extends AbstractRoutineParameterAssert,
ACTUAL extends RoutineParameter,
PARENT extends Routine>
extends AbstractBaseColumnAssert {
protected AbstractRoutineParameterAssert(ACTUAL actual, Class> selfType) {
super(actual, selfType);
}
public SELF hasParameterMode(ParameterModeType expected) {
extracting(RoutineParameter::getParameterMode)
.isEqualTo(expected);
return myself;
}
public SELF matchesPrecision(Predicate predicate) {
extracting(RoutineParameter::getPrecision)
.matches(predicate);
return myself;
}
}