com.exasol.matcher.CellMatcherFactory Maven / Gradle / Ivy
package com.exasol.matcher;
import static com.exasol.matcher.EnhancedAllOfMatcher.enhancedAllOf;
import static org.hamcrest.Matchers.instanceOf;
import static org.hamcrest.Matchers.nullValue;
import java.math.BigDecimal;
import org.hamcrest.Matcher;
/**
* This class builds Hamcrest matchers for given cell values.
*/
public class CellMatcherFactory {
private CellMatcherFactory() {
// empty on purpose
}
/**
* Build a Hamcrest matcher that matches values if they are equal to the given value.
*
* @param expectedCellValue expected value / matcher
* @param typeMatchMode type match mode
* @param fuzzyTolerance tolerance for fuzzy matching numbers
* @return built matcher
*/
public static Matcher