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

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

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

import org.assertj.core.api.AbstractAssert;

import java.util.Arrays;
import java.util.List;

import static io.fluentlenium.assertj.custom.HtmlConstants.CLASS_DELIMITER;

/**
 * Abstract base class for FluentLenium assertion implementations.
 *
 * @param    the "self" type of this assertion class
 * @param  an actual implementation of this interface
 */
abstract class AbstractFluentAssert, ACTUAL> extends AbstractAssert
        implements FluentAssert {

    AbstractFluentAssert(ACTUAL actual, Class selfType) {
        super(actual, selfType);
    }

    /**
     * Returns the class list from the argument class attribute value.
     *
     * @param classString the class attribute value
     * @return the list of classes
     */
    List getClasses(String classString) {
        String[] primitiveList = classString.split(CLASS_DELIMITER);
        return Arrays.asList(primitiveList);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy