info.novatec.testit.webtester.support.assertj.AbstractWebTesterAssert Maven / Gradle / Ivy
package info.novatec.testit.webtester.support.assertj;
import org.assertj.core.api.AbstractAssert;
/**
* Abstract base class for all of WebTester's AssertJ assertion classes.
*
* @param the "self" type of this assertion class. Please read "
* Emulating 'self types'
* using Java Generics to simplify fluent API implementation"
* for more details.
* @param the type of the "actual" value.
* @since 0.9.8
*/
public abstract class AbstractWebTesterAssert extends AbstractAssert, B> {
public AbstractWebTesterAssert(B actual, Class> selfType) {
super(actual, selfType);
}
protected void failOnActualBeingNull() {
if (actual == null) {
failWithMessage("Object is null");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy