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

info.novatec.testit.webtester.support.assertj.AbstractWebTesterAssert Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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