| Package | Description |
|---|---|
| fluent.validation | |
| fluent.validation.dsl | |
| fluent.validation.result |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCheckDsl<L,D> |
class |
CustomResultFactoryCheck<T> |
class |
CheckDsl<D> |
class |
MapCheckBuilder<K,V> |
class |
ThrowingCheck |
| Modifier and Type | Method and Description |
|---|---|
static Check<Object> |
BasicChecks.a(Class<?> expectedClass)
Alias of `instanceOf` which may be more readable in some context.
|
static <D> Check<D> |
BasicChecks.allOf(Check<? super D>... operands)
General AND operator of multiple checks.
|
static <D> Check<D> |
BasicChecks.allOf(Iterable<Check<? super D>> operands)
General AND operator of multiple checks.
|
static Check<Object> |
BasicChecks.an(Class<?> expectedClass)
Alias of `instanceOf` which may be more readable in some context.
|
<U extends T> |
Check.and(Check<? super U> operand)
Compose this check with another one using logical AND operator.
|
static <D> Check<D> |
BasicChecks.anyOf(Check<? super D>... operands)
General OR operator of multiple checks.
|
static <D> Check<D> |
BasicChecks.anyOf(Iterable<Check<? super D>> operands)
General OR operator of multiple checks.
|
static Check<Object> |
BasicChecks.anything()
Check, that doesn't care of the tested value, and always returns true.
|
static <T> Check<T[]> |
CollectionChecks.array(Check<Iterator<T>> check) |
static <D extends Comparable<D>> |
ComparisonChecks.between(D left,
D right) |
static <D> Check<D> |
ComparisonChecks.between(D left,
D right,
Comparator<D> comparator) |
static <D extends Comparable<D>> |
ComparisonChecks.betweenInclusive(D left,
D right) |
static <D> Check<D> |
ComparisonChecks.betweenInclusive(D left,
D right,
Comparator<D> comparator) |
static <T> Check<BlockingQueue<T>> |
CollectionChecks.blockingQueue(Check<Iterator<T>> check,
Duration timeout) |
static Check<ResultSet> |
DatabaseChecks.booleanColumn(int position,
Check<? super Boolean> check) |
static Check<ResultSet> |
DatabaseChecks.booleanColumn(String label,
Check<? super Boolean> check) |
static Check<ResultSet> |
DatabaseChecks.byteColumn(int position,
Check<? super Byte> check) |
static Check<ResultSet> |
DatabaseChecks.byteColumn(String label,
Check<? super Byte> check) |
static Check<ResultSet> |
DatabaseChecks.bytesColumn(int position,
Check<? super byte[]> check) |
static Check<ResultSet> |
DatabaseChecks.bytesColumn(String label,
Check<? super byte[]> check) |
static Check<BigDecimal> |
NumericChecks.closeTo(BigDecimal expectedValue,
BigDecimal precision)
Check, that a BigDecimal number is close enough to the expected value, given the explicit tolerance.
|
static Check<Double> |
NumericChecks.closeTo(double expectedValue,
double precision)
Check, that a double number is close enough to the expected value, given the explicit tolerance.
|
static Check<Float> |
NumericChecks.closeTo(float expectedValue,
float precision)
Check, that a float number is close enough to the expected value, given the explicit tolerance.
|
static <T> Check<Iterable<T>> |
CollectionChecks.collection(Check<Iterator<T>> check) |
static <T> Check<ResultSet> |
DatabaseChecks.column(int position,
Class<T> type,
Check<? super T> check) |
static <T> Check<ResultSet> |
DatabaseChecks.column(String label,
Class<T> type,
Check<? super T> check) |
static Check<ResultSetMetaData> |
DatabaseChecks.columnCount(int expectedValue) |
static Check<ResultSetMetaData> |
DatabaseChecks.columnName(int position,
String expectedName) |
static <D,V> Check<D> |
BasicChecks.compose(String name,
Transformation<? super D,V> transformation,
Check<? super V> check)
Convenient composition using transformation of the original object, and check on the result.
|
static <D,V> Check<D> |
BasicChecks.compose(Transformation<? super D,V> transformation,
Check<? super V> check)
Simplified composition using transformation of the original object, and check on the result.
|
static <T> Check<Iterator<T>> |
CollectionChecks.contains(Iterable<Check<? super T>> elementChecks) |
static Check<String> |
StringChecks.contains(String substring) |
static <T> Check<Iterator<T>> |
CollectionChecks.contains(String elementName,
Iterable<Check<? super T>> elementChecks) |
static <D> Check<Collection<D>> |
CollectionChecks.containsAll(Collection<D> items) |
static <D> Check<Collection<D>> |
CollectionChecks.containsAll(D... items) |
static Check<String> |
StringChecks.containsCaseInsensitive(String substring) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrder(Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrder(String elementName,
Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrderOnly(Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrderOnly(String elementName,
Collection<Check<? super T>> elementChecks) |
static <D> Check<D> |
BasicChecks.createBuilder() |
static <D> Check<D> |
BasicChecks.createBuilderWith(Check<D> check) |
static <D> Check<D> |
BasicChecks.customResultFactory(Check<D> check,
ResultFactory customResultFactory) |
static Check<LocalDateTime> |
DateTimeChecks.date(Check<? super LocalDate> dateCheck) |
static Check<ResultSet> |
DatabaseChecks.doubleColumn(int position,
Check<? super Double> check) |
static Check<ResultSet> |
DatabaseChecks.doubleColumn(String label,
Check<? super Double> check) |
static <D> Check<D[]> |
CollectionChecks.emptyArray()
Create matcher of empty array.
|
static <D> Check<D[]> |
CollectionChecks.emptyArrayOrNull()
Check, that provided data is either null or empty array.
|
static <D> Check<Collection<D>> |
CollectionChecks.emptyCollection()
Create matcher of empty collection.
|
static Check<String> |
StringChecks.emptyString() |
static Check<String> |
StringChecks.endsCaseInsensitiveWith(String suffix) |
static Check<String> |
StringChecks.endsWith(String suffix) |
static Check<String> |
StringChecks.equalCaseInsensitiveTo(String expectedValue) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalInAnyOrderTo(Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalInAnyOrderTo(String elementName,
Collection<Check<? super T>> elementChecks) |
static <D extends Comparable<D>> |
ComparisonChecks.equalOrLessThan(D operand) |
static <D> Check<D> |
ComparisonChecks.equalOrLessThan(D operand,
Comparator<D> comparator) |
static <D extends Comparable<D>> |
ComparisonChecks.equalOrMoreThan(D operand) |
static <D> Check<D> |
ComparisonChecks.equalOrMoreThan(D operand,
Comparator<D> comparator) |
static Check<BigDecimal> |
NumericChecks.equalTo(BigDecimal expectedValue) |
static <D> Check<D> |
BasicChecks.equalTo(D expectedValue)
Create a check, that checks if the tested value is equal to expected value.
|
static Check<Double> |
NumericChecks.equalTo(Double expectedValue) |
static Check<Float> |
NumericChecks.equalTo(Float expectedValue) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalTo(Iterable<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalTo(String elementName,
Iterable<Check<? super T>> elementChecks) |
static <D> Check<Iterable<D>> |
CollectionChecks.every(String elementName,
Check<? super D> check) |
static Check<PreparedStatement> |
DatabaseChecks.executeQuery(Check<? super ResultSet> check) |
static <D> Check<Iterable<D>> |
CollectionChecks.exists(String elementName,
Check<? super D> check) |
static Check<ResultSet> |
DatabaseChecks.hasMoreRecords() |
static Check<ResultSet> |
DatabaseChecks.hasNoMoreRecords() |
static <D> Check<Collection<D>> |
CollectionChecks.hasSize(int size)
Create matcher of collection size.
|
static <D> Check<D> |
BasicChecks.check(Predicate<D> predicate,
String expectationDescription)
Build a custom check using it's description and pure Java predicate.
|
static Check<Object> |
BasicChecks.instanceOf(Class<?> expectedClass)
Check, that tested data is instance of provided class (either the class itself or any subclass).
|
static Check<ResultSet> |
DatabaseChecks.intColumn(int position,
Check<? super Integer> check) |
static Check<ResultSet> |
DatabaseChecks.intColumn(String label,
Check<? super Integer> check) |
static <D> Check<D> |
BasicChecks.is(D expectedValue)
Alias for `equalTo`, which may be more readable in some constructions.
|
static Check<Object> |
BasicChecks.isA(Class<?> expectedClass)
Alias of `instanceOf` which may be more readable in some context.
|
static Check<Object> |
BasicChecks.isAn(Class<?> expectedClass)
Alias of `instanceOf` which may be more readable in some context.
|
static Check<Object> |
BasicChecks.isNotNull()
Check, if tested data is not null.
|
static Check<Object> |
BasicChecks.isNull()
Check, if tested data is null.
|
static <D extends Comparable<D>> |
ComparisonChecks.lessThan(D operand) |
static <D> Check<D> |
ComparisonChecks.lessThan(D operand,
Comparator<D> comparator) |
static Check<String> |
XmlChecks.loadXml(Check<? super Document> check)
Use string parameter as path to XML file, and check the file using DOM Document check.
|
static <K,V> Check<Map<K,V>> |
CollectionChecks.mapHas(K key,
Check<? super V> check) |
static Check<String> |
StringChecks.matches(Pattern pattern) |
static Check<String> |
StringChecks.matchesPattern(String pattern) |
static Check<Object> |
XmlChecks.matchesXPath(String xPath) |
static Check<Throwable> |
BasicChecks.message(Check<? super String> check)
Check of exception (throwable) message.
|
static Check<ResultSet> |
DatabaseChecks.metadata(Check<? super ResultSetMetaData> check) |
static <V> Check<ResultSetMetaData> |
DatabaseChecks.metadataCheck(String name,
Transformation<ResultSetMetaData,V> function,
Check<? super V> check) |
static <D extends Comparable<D>> |
ComparisonChecks.moreThan(D operand) |
static <D> Check<D> |
ComparisonChecks.moreThan(D operand,
Comparator<D> comparator) |
static <D> Check<D> |
BasicChecks.not(D positiveValue)
Check, that provided positive value isn't equal to checked data.
|
static <D> Check<D> |
BasicChecks.not(Check<D> positiveCheck)
Check, that provided positive check doesn't match checked data.
|
static <D> Check<D> |
BasicChecks.nullableCheck(Predicate<D> predicate,
String expectationDescription)
Define a transparent check using provided predicate and string expectation description.
|
static <D> Check<D> |
BasicChecks.oneOf(Collection<D> alternatives)
Create matcher, that matches, if tested object meets one of provided alternatives (or).
|
static <D> Check<D> |
BasicChecks.oneOf(D... alternatives)
Create matcher, that matches, if tested object meets one of provided alternatives (or).
|
<U extends T> |
Check.or(Check<? super U> operand)
Compose this check with another one using logical OR operator.
|
static <T> Check<CallableStatement> |
DatabaseChecks.outParameter(int position,
Class<T> type,
Check<? super T> check) |
static Check<String> |
NumericChecks.parseBigDecimal(Check<? super BigDecimal> check) |
static Check<String> |
NumericChecks.parseBigInt(Check<? super BigInteger> check) |
static Check<String> |
NumericChecks.parseBoolean(Boolean expectedValue) |
static Check<String> |
NumericChecks.parseBoolean(Check<? super Boolean> check) |
static Check<String> |
NumericChecks.parseByte(byte expectedValue) |
static Check<String> |
NumericChecks.parseByte(Byte expectedValue) |
static Check<String> |
NumericChecks.parseByte(Check<? super Byte> check) |
static Check<String> |
NumericChecks.parseDouble(double expectedValue) |
static Check<String> |
NumericChecks.parseDouble(Double expectedValue) |
static Check<String> |
NumericChecks.parseDouble(Check<? super Double> check) |
static Check<String> |
NumericChecks.parseFloat(float expectedValue) |
static Check<String> |
NumericChecks.parseFloat(Float expectedValue) |
static Check<String> |
NumericChecks.parseFloat(Check<? super Float> check) |
static Check<String> |
NumericChecks.parseInt(Check<? super Integer> check) |
static Check<String> |
NumericChecks.parseInt(int expectedValue) |
static Check<String> |
NumericChecks.parseInt(Integer expectedValue) |
static Check<String> |
DateTimeChecks.parseLocalDateTime(DateTimeFormatter format,
Check<? super LocalDateTime> check) |
static Check<String> |
DateTimeChecks.parseLocalDateTime(Check<? super LocalDateTime> check) |
static Check<String> |
DateTimeChecks.parseLocalDateTime(String format,
Check<? super LocalDateTime> check) |
static Check<String> |
NumericChecks.parseLong(Check<? super Long> check) |
static Check<String> |
NumericChecks.parseLong(long expectedValue) |
static Check<String> |
NumericChecks.parseLong(Long expectedValue) |
static Check<String> |
NumericChecks.parseShort(Check<? super Short> check) |
static Check<String> |
NumericChecks.parseShort(short expectedValue) |
static Check<String> |
NumericChecks.parseShort(Short expectedValue) |
static Check<String> |
XmlChecks.parseXml(Check<? super Document> check)
Use string parameter as XML content, and check the file using DOM Document check.
|
static Check<String> |
DateTimeChecks.parseZonedDateTime(DateTimeFormatter format,
Check<? super ZonedDateTime> check) |
static Check<String> |
DateTimeChecks.parseZonedDateTime(Check<? super ZonedDateTime> check) |
static Check<String> |
DateTimeChecks.parseZonedDateTime(String format,
Check<? super ZonedDateTime> check) |
static <T> Check<Queue<T>> |
CollectionChecks.queue(Check<Iterator<T>> check) |
static <D> Check<D> |
CollectionChecks.repeatMax(Check<D> attemptCheck,
int max) |
static <D> Check<D> |
CollectionChecks.repeatMax(Check<D> itemCheck,
int max,
Duration delay) |
static <D> Check<D> |
BasicChecks.require(Check<? super D> requirement,
Check<? super D> check)
Require, that tested data meet provided requirement before application of a check.
|
static <D> Check<D> |
BasicChecks.requireNotNull(Check<D> check)
Require, that tested value is not null, before application of the provided check on it.
|
static Check<ResultSet> |
DatabaseChecks.resultSetContains(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetContainsInAnyOrder(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetEqualInAnyOrderTo(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetEqualTo(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetStartsInAnyOrderWith(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetStartsWith(Collection<Check<? super ResultSet>> checks) |
static Check<Object> |
BasicChecks.sameClass(Class<?> expectedClass)
Check, that tested data is exactly of the provided type, but not any subcalss of it.
|
static <D> Check<D> |
BasicChecks.sameInstance(D expectedInstance)
Create a check, that checks if the tested value is exactly the same instance as expected.
|
static <D> Check<D> |
BasicChecks.softCheck(Check<D> check) |
static <R> Check<ResultSet> |
DatabaseChecks.sqlCheck(int position,
Transformation<ResultSet,R> function,
Check<? super R> check) |
static <R> Check<ResultSet> |
DatabaseChecks.sqlCheck(String name,
Transformation<ResultSet,R> function,
Check<? super R> check) |
static Check<String> |
StringChecks.startsCaseInsensitiveWith(String prefix) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsInAnyOrderWith(Collection<Check<? super T>> prefixElementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsInAnyOrderWith(String elementName,
Collection<Check<? super T>> prefixElementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsWith(Iterable<Check<? super T>> prefix) |
static Check<String> |
StringChecks.startsWith(String prefix) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsWith(String elementName,
Iterable<Check<? super T>> prefix) |
Check<D> |
Value.storeWhen(Check<? super D> condition) |
static Check<ResultSet> |
DatabaseChecks.stringColumn(int position,
Check<? super String> check) |
static Check<ResultSet> |
DatabaseChecks.stringColumn(String label,
Check<? super String> check) |
static <D> Check<Collection<D>> |
CollectionChecks.subsetOf(Collection<D> superSet)
Create matcher, that matches if tested collection meets subset of provided superset.
|
static <D> Check<Collection<D>> |
CollectionChecks.subsetOf(D... superSet)
Create matcher, that matches if tested collection meets subset of provided superset.
|
static Check<LocalDateTime> |
DateTimeChecks.time(Check<? super LocalTime> dateCheck) |
static <D,V> Check<D> |
BasicChecks.transform(Transformation<? super D,V> transformation,
Check<? super V> check)
Lowest level transformation.
|
static Check<String> |
StringChecks.trim(Check<? super String> check) |
static <D> Check<D> |
BasicChecks.which(Check<D> check) |
static Check<LocalDateTime> |
DateTimeChecks.zoned(Check<? super ZonedDateTime> zonedDateTimeCheck) |
static Check<LocalDateTime> |
DateTimeChecks.zoned(Check<? super ZonedDateTime> zonedDateTimeCheck,
ZoneId zoneId) |
| Modifier and Type | Method and Description |
|---|---|
static <V> TransformationBuilder<V,Check<V>> |
BasicChecks.as(Class<V> type)
Fluent builder of a check, that will assure, that provided object is instance of required class, and if yes,
it will cast it to that class, and apply provided check on the required type.
|
static <D,V> TransformationBuilder<V,Check<D>> |
BasicChecks.has(String name,
Transformation<? super D,V> transformation) |
static <D,V> TransformationBuilder<V,Check<D>> |
BasicChecks.has(Transformation<? super D,V> transformation) |
static TransformationBuilder<Object,Check<Object>> |
XmlChecks.hasNode(String xPath) |
static TransformationBuilder<Object,Check<Object>> |
XmlChecks.hasNode(String xPath,
QName type) |
static TransformationBuilder<Object,Check<String>> |
XmlChecks.hasTextContent(String xPath) |
static <T> Collection<Check<? super T>> |
CollectionChecks.items(T... expectedValues) |
static <T> Collection<Check<? super T>> |
CollectionChecks.itemsMatching(Check<? super T>... expectedValues) |
static <D,V> TransformationBuilder<V,Check<D>> |
BasicChecks.nullableHas(String name,
Transformation<? super D,V> transformation) |
static <D,V> TransformationBuilder<V,Check<D>> |
BasicChecks.nullableHas(Transformation<? super D,V> transformation) |
| Modifier and Type | Method and Description |
|---|---|
static <D> Check<D> |
BasicChecks.allOf(Check<? super D>... operands)
General AND operator of multiple checks.
|
<U extends T> |
Check.and(Check<? super U> operand)
Compose this check with another one using logical AND operator.
|
static <D> Check<D> |
BasicChecks.anyOf(Check<? super D>... operands)
General OR operator of multiple checks.
|
static <T> Check<T[]> |
CollectionChecks.array(Check<Iterator<T>> check) |
<T> T |
Interpreter.assertThat(T data,
Check<? super T> check) |
static <T> Check<BlockingQueue<T>> |
CollectionChecks.blockingQueue(Check<Iterator<T>> check,
Duration timeout) |
static Check<ResultSet> |
DatabaseChecks.booleanColumn(int position,
Check<? super Boolean> check) |
static Check<ResultSet> |
DatabaseChecks.booleanColumn(String label,
Check<? super Boolean> check) |
static Check<ResultSet> |
DatabaseChecks.byteColumn(int position,
Check<? super Byte> check) |
static Check<ResultSet> |
DatabaseChecks.byteColumn(String label,
Check<? super Byte> check) |
static Check<ResultSet> |
DatabaseChecks.bytesColumn(int position,
Check<? super byte[]> check) |
static Check<ResultSet> |
DatabaseChecks.bytesColumn(String label,
Check<? super byte[]> check) |
static <T> Check<Iterable<T>> |
CollectionChecks.collection(Check<Iterator<T>> check) |
static <T> Check<ResultSet> |
DatabaseChecks.column(int position,
Class<T> type,
Check<? super T> check) |
static <T> Check<ResultSet> |
DatabaseChecks.column(String label,
Class<T> type,
Check<? super T> check) |
static <D,V> Check<D> |
BasicChecks.compose(String name,
Transformation<? super D,V> transformation,
Check<? super V> check)
Convenient composition using transformation of the original object, and check on the result.
|
static <D,V> Check<D> |
BasicChecks.compose(Transformation<? super D,V> transformation,
Check<? super V> check)
Simplified composition using transformation of the original object, and check on the result.
|
static <D> Check<D> |
BasicChecks.createBuilderWith(Check<D> check) |
static <D> Check<D> |
BasicChecks.customResultFactory(Check<D> check,
ResultFactory customResultFactory) |
static Check<LocalDateTime> |
DateTimeChecks.date(Check<? super LocalDate> dateCheck) |
static Check<ResultSet> |
DatabaseChecks.doubleColumn(int position,
Check<? super Double> check) |
static Check<ResultSet> |
DatabaseChecks.doubleColumn(String label,
Check<? super Double> check) |
static <T> Result |
Check.evaluate(T data,
Check<? super T> check) |
static <D> Check<Iterable<D>> |
CollectionChecks.every(String elementName,
Check<? super D> check) |
static Check<PreparedStatement> |
DatabaseChecks.executeQuery(Check<? super ResultSet> check) |
static <D> Check<Iterable<D>> |
CollectionChecks.exists(String elementName,
Check<? super D> check) |
<T> boolean |
Interpreter.checkThat(T data,
Check<? super T> check) |
static Check<ResultSet> |
DatabaseChecks.intColumn(int position,
Check<? super Integer> check) |
static Check<ResultSet> |
DatabaseChecks.intColumn(String label,
Check<? super Integer> check) |
static <T> Collection<Check<? super T>> |
CollectionChecks.itemsMatching(Check<? super T>... expectedValues) |
static Check<String> |
XmlChecks.loadXml(Check<? super Document> check)
Use string parameter as path to XML file, and check the file using DOM Document check.
|
static <K,V> Check<Map<K,V>> |
CollectionChecks.mapHas(K key,
Check<? super V> check) |
R |
TransformationBuilder.matching(Check<? super V> check)
Set check, that a value must match.
|
static Check<Throwable> |
BasicChecks.message(Check<? super String> check)
Check of exception (throwable) message.
|
static Check<ResultSet> |
DatabaseChecks.metadata(Check<? super ResultSetMetaData> check) |
static <V> Check<ResultSetMetaData> |
DatabaseChecks.metadataCheck(String name,
Transformation<ResultSetMetaData,V> function,
Check<? super V> check) |
static <D> Check<D> |
BasicChecks.not(Check<D> positiveCheck)
Check, that provided positive check doesn't match checked data.
|
<U extends T> |
Check.or(Check<? super U> operand)
Compose this check with another one using logical OR operator.
|
static <T> Check<CallableStatement> |
DatabaseChecks.outParameter(int position,
Class<T> type,
Check<? super T> check) |
static Check<String> |
NumericChecks.parseBigDecimal(Check<? super BigDecimal> check) |
static Check<String> |
NumericChecks.parseBigInt(Check<? super BigInteger> check) |
static Check<String> |
NumericChecks.parseBoolean(Check<? super Boolean> check) |
static Check<String> |
NumericChecks.parseByte(Check<? super Byte> check) |
static Check<String> |
NumericChecks.parseDouble(Check<? super Double> check) |
static Check<String> |
NumericChecks.parseFloat(Check<? super Float> check) |
static Check<String> |
NumericChecks.parseInt(Check<? super Integer> check) |
static Check<String> |
DateTimeChecks.parseLocalDateTime(DateTimeFormatter format,
Check<? super LocalDateTime> check) |
static Check<String> |
DateTimeChecks.parseLocalDateTime(Check<? super LocalDateTime> check) |
static Check<String> |
DateTimeChecks.parseLocalDateTime(String format,
Check<? super LocalDateTime> check) |
static Check<String> |
NumericChecks.parseLong(Check<? super Long> check) |
static Check<String> |
NumericChecks.parseShort(Check<? super Short> check) |
static Check<String> |
XmlChecks.parseXml(Check<? super Document> check)
Use string parameter as XML content, and check the file using DOM Document check.
|
static Check<String> |
DateTimeChecks.parseZonedDateTime(DateTimeFormatter format,
Check<? super ZonedDateTime> check) |
static Check<String> |
DateTimeChecks.parseZonedDateTime(Check<? super ZonedDateTime> check) |
static Check<String> |
DateTimeChecks.parseZonedDateTime(String format,
Check<? super ZonedDateTime> check) |
static <T> Check<Queue<T>> |
CollectionChecks.queue(Check<Iterator<T>> check) |
static <D> Check<D> |
CollectionChecks.repeatMax(Check<D> attemptCheck,
int max) |
static <D> Check<D> |
CollectionChecks.repeatMax(Check<D> itemCheck,
int max,
Duration delay) |
static <D> Check<D> |
BasicChecks.require(Check<? super D> requirement,
Check<? super D> check)
Require, that tested data meet provided requirement before application of a check.
|
static <D> Check<D> |
BasicChecks.require(Check<? super D> requirement,
Check<? super D> check)
Require, that tested data meet provided requirement before application of a check.
|
static <D> Check<D> |
BasicChecks.requireNotNull(Check<D> check)
Require, that tested value is not null, before application of the provided check on it.
|
static <D> Check<D> |
BasicChecks.softCheck(Check<D> check) |
static <R> Check<ResultSet> |
DatabaseChecks.sqlCheck(int position,
Transformation<ResultSet,R> function,
Check<? super R> check) |
static <R> Check<ResultSet> |
DatabaseChecks.sqlCheck(String name,
Transformation<ResultSet,R> function,
Check<? super R> check) |
Check<D> |
Value.storeWhen(Check<? super D> condition) |
static Check<ResultSet> |
DatabaseChecks.stringColumn(int position,
Check<? super String> check) |
static Check<ResultSet> |
DatabaseChecks.stringColumn(String label,
Check<? super String> check) |
static <T> T |
Assert.that(T data,
Check<? super T> check)
Assert the data using provided check.
|
static <T> boolean |
Check.that(T data,
Check<? super T> check)
Assert the data using provided check.
|
static <T> T |
Assert.that(T data,
Check<? super T> check,
ResultVisitor visitor)
Assert the data using provided check.
|
static <T> boolean |
Check.that(T data,
Check<? super T> check,
ResultVisitor visitor) |
static ThrowingCheck |
BasicChecks.throwing(Check<? super Throwable> check)
Check of a code, which should throw an exception (throwable).
|
static Check<LocalDateTime> |
DateTimeChecks.time(Check<? super LocalTime> dateCheck) |
static <D,V> Check<D> |
BasicChecks.transform(Transformation<? super D,V> transformation,
Check<? super V> check)
Lowest level transformation.
|
static Check<String> |
StringChecks.trim(Check<? super String> check) |
static <D> Check<D> |
BasicChecks.which(Check<D> check) |
L |
AbstractCheckDsl.with(Check<? super D> check) |
MapCheckBuilder<K,V> |
MapCheckBuilder.with(K key,
Check<? super V> check) |
ThrowingCheck |
ThrowingCheck.withMessage(Check<? super String> check) |
static Check<LocalDateTime> |
DateTimeChecks.zoned(Check<? super ZonedDateTime> zonedDateTimeCheck) |
static Check<LocalDateTime> |
DateTimeChecks.zoned(Check<? super ZonedDateTime> zonedDateTimeCheck,
ZoneId zoneId) |
| Modifier and Type | Method and Description |
|---|---|
static <D> Check<D> |
BasicChecks.allOf(Iterable<Check<? super D>> operands)
General AND operator of multiple checks.
|
static <D> Check<D> |
BasicChecks.anyOf(Iterable<Check<? super D>> operands)
General OR operator of multiple checks.
|
static <T> Check<Iterator<T>> |
CollectionChecks.contains(Iterable<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.contains(String elementName,
Iterable<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrder(Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrder(String elementName,
Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrderOnly(Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.containsInAnyOrderOnly(String elementName,
Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalInAnyOrderTo(Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalInAnyOrderTo(String elementName,
Collection<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalTo(Iterable<Check<? super T>> elementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.equalTo(String elementName,
Iterable<Check<? super T>> elementChecks) |
static Check<ResultSet> |
DatabaseChecks.resultSetContains(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetContainsInAnyOrder(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetEqualInAnyOrderTo(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetEqualTo(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetStartsInAnyOrderWith(Collection<Check<? super ResultSet>> checks) |
static Check<ResultSet> |
DatabaseChecks.resultSetStartsWith(Collection<Check<? super ResultSet>> checks) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsInAnyOrderWith(Collection<Check<? super T>> prefixElementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsInAnyOrderWith(String elementName,
Collection<Check<? super T>> prefixElementChecks) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsWith(Iterable<Check<? super T>> prefix) |
static <T> Check<Iterator<T>> |
CollectionChecks.startsWith(String elementName,
Iterable<Check<? super T>> prefix) |
| Constructor and Description |
|---|
AbstractCheckDsl(Check<? super D> check,
Function<Check<D>,L> factory) |
CustomResultFactoryCheck(Check<T> check,
ResultFactory resultFactory) |
MapCheckBuilder(Check<? super Map<K,V>> check) |
| Constructor and Description |
|---|
AbstractCheckDsl(Function<Check<D>,L> factory) |
AbstractCheckDsl(Check<? super D> check,
Function<Check<D>,L> factory) |
| Modifier and Type | Class and Description |
|---|---|
class |
LocalDateCheck |
class |
LocalDateTimeCheck |
class |
LocalTimeCheck |
class |
ZonedDateTimeCheck |
| Modifier and Type | Method and Description |
|---|---|
ZonedDateTimeCheck |
ZonedDateTimeCheck.date(Check<? super LocalDate> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.date(Check<? super LocalDate> check) |
LocalDateCheck |
LocalDateCheck.day(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.day(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.day(Check<? super Integer> check) |
LocalDateCheck |
LocalDateCheck.dayOfWeek(Check<? super DayOfWeek> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.dayOfWeek(Check<? super DayOfWeek> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.dayOfWeek(Check<? super DayOfWeek> check) |
LocalDateCheck |
LocalDateCheck.dayOfYear(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.dayOfYear(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.dayOfYear(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.hour(Check<? super Integer> check) |
LocalTimeCheck |
LocalTimeCheck.hour(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.hour(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.minute(Check<? super Integer> check) |
LocalTimeCheck |
LocalTimeCheck.minute(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.minute(Check<? super Integer> check) |
LocalDateCheck |
LocalDateCheck.month(Check<? super Month> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.month(Check<? super Month> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.month(Check<? super Month> check) |
LocalDateCheck |
LocalDateCheck.monthValue(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.monthValue(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.monthValue(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.nano(Check<? super Integer> check) |
LocalTimeCheck |
LocalTimeCheck.nano(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.nano(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.second(Check<? super Integer> check) |
LocalTimeCheck |
LocalTimeCheck.second(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.second(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.time(Check<? super LocalTime> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.time(Check<? super LocalTime> check) |
LocalDateCheck |
LocalDateCheck.year(Check<? super Integer> check) |
ZonedDateTimeCheck |
ZonedDateTimeCheck.year(Check<? super Integer> check) |
LocalDateTimeCheck |
LocalDateTimeCheck.year(Check<? super Integer> check) |
| Modifier and Type | Method and Description |
|---|---|
default <D> TableAggregator<D> |
ResultFactory.table(Object prefix,
ArrayList<Check<? super D>> checks) |
void |
ExpectationVisitor.tableAggregation(Object prefix,
List<Check<?>> checks,
List<?> items,
List<TableInResult.Cell> results,
boolean value) |
void |
XmlStreamResultVisitor.tableAggregation(Object prefix,
List<Check<?>> checks,
List<?> items,
List<TableInResult.Cell> results,
boolean value) |
void |
FailedResultVisitor.tableAggregation(Object prefix,
List<Check<?>> checks,
List<?> items,
List<TableInResult.Cell> results,
boolean value) |
void |
ResultVisitor.tableAggregation(Object prefix,
List<Check<?>> checks,
List<?> items,
List<TableInResult.Cell> results,
boolean value) |
void |
MismatchResultVisitor.tableAggregation(Object prefix,
List<Check<?>> checks,
List<?> items,
List<TableInResult.Cell> results,
boolean value) |
void |
JaxbResultVisitor.tableAggregation(Object prefix,
List<Check<?>> checks,
List<?> items,
List<TableInResult.Cell> results,
boolean value) |
| Constructor and Description |
|---|
TableInResult(Object prefix,
List<Check<?>> rows,
List<?> columns,
List<TableInResult.Cell> results,
boolean result) |
Copyright © 2021. All rights reserved.