io.fluentlenium.assertj.custom.AbstractFluentAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluentlenium-assertj Show documentation
Show all versions of fluentlenium-assertj Show documentation
AssertJ Extension for FluentLenium
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);
}
}