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

org.fest.assertions.fluentlenium.custom.AttributeAssert Maven / Gradle / Ivy

The newest version!
package org.fest.assertions.fluentlenium.custom;

import org.fest.assertions.GenericAssert;

/**
 * @deprecated fest-assert has not been maintained since 2013. This module will be removed from FluentLenium in a next future. Use fluentlenium-assertj instead.
 */
@Deprecated
public class AttributeAssert extends GenericAssert {

    public AttributeAssert(String actual) {
        super(AttributeAssert.class, actual);
    }

    public AttributeAssert withValue(String expectedValue) {
        if (!actual.equals(expectedValue)) {
            super.fail("The attribute does not have the value: " + expectedValue + ". Actual value is : " + actual);
        }
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy