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

io.fluentlenium.assertj.custom.AttributeAssert Maven / Gradle / Ivy

The newest version!
package io.fluentlenium.assertj.custom;

import org.assertj.core.api.AbstractAssert;

/**
 * Base assertion interface for attribute validation within a single attribute value or a list of attribute values.
 *
 * @param  the type of AssertJ assert to return
 */
public interface AttributeAssert {

    /**
     * Checks if the element, or at least one element in a list of elements, has the given property.
     * 

* It allows users to do not just presence validation but to apply chained assertions * to further validate the attribute values. * * @param attribute the attribute to find * @return a new assert object with the actual attribute value */ T hasAttribute(String attribute); /** * Checks if the element doesn't have, or no element in a list of elements has, the given property. * * @param attribute attribute to find the absence of * @return {@code this} assertion object. */ AbstractAssert hasNotAttribute(String attribute); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy