Package io.vavr.test
Class CheckResult.Falsified
- java.lang.Object
-
- io.vavr.test.CheckResult.Falsified
-
- All Implemented Interfaces:
CheckResult,java.io.Serializable
- Enclosing interface:
- CheckResult
public static class CheckResult.Falsified extends java.lang.Object implements CheckResult, java.io.Serializable
Represents a falsified property check.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.vavr.test.CheckResult
CheckResult.Erroneous, CheckResult.Falsified, CheckResult.Satisfied
-
-
Field Summary
Fields Modifier and Type Field Description private intcountprivate java.lang.StringpropertyNameprivate Tuplesampleprivate static longserialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount()The number of checks performed using random generated input data.booleanequals(java.lang.Object o)Option<java.lang.Error>error()An optional error.inthashCode()booleanisErroneous()If this check result is erroneous as specified above.booleanisExhausted()If this check result is exhausted as specified above.booleanisFalsified()If this check result is falsified as specified above.booleanisSatisfied()If this check result is satisfied as specified above.java.lang.StringpropertyName()The name of the checked property this result refers to.Option<Tuple>sample()An optional sample which falsified the property or which lead to an error.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.vavr.test.CheckResult
assertIsErroneous, assertIsFalsified, assertIsSatisfied, assertIsSatisfiedWithExhaustion
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
propertyName
private final java.lang.String propertyName
-
count
private final int count
-
sample
private final Tuple sample
-
-
Constructor Detail
-
Falsified
Falsified(java.lang.String propertyName, int count, Tuple sample)
-
-
Method Detail
-
isSatisfied
public boolean isSatisfied()
Description copied from interface:CheckResultIf this check result is satisfied as specified above.- Specified by:
isSatisfiedin interfaceCheckResult- Returns:
- true, if this check result is satisfied, false otherwise
-
isFalsified
public boolean isFalsified()
Description copied from interface:CheckResultIf this check result is falsified as specified above.- Specified by:
isFalsifiedin interfaceCheckResult- Returns:
- true, if this check result is falsified, false otherwise
-
isErroneous
public boolean isErroneous()
Description copied from interface:CheckResultIf this check result is erroneous as specified above.- Specified by:
isErroneousin interfaceCheckResult- Returns:
- true, if this check result is erroneous, false otherwise
-
isExhausted
public boolean isExhausted()
Description copied from interface:CheckResultIf this check result is exhausted as specified above.- Specified by:
isExhaustedin interfaceCheckResult- Returns:
- true, if this check result is exhausted, false otherwise
-
propertyName
public java.lang.String propertyName()
Description copied from interface:CheckResultThe name of the checked property this result refers to.- Specified by:
propertyNamein interfaceCheckResult- Returns:
- a property name
-
count
public int count()
Description copied from interface:CheckResultThe number of checks performed using random generated input data.- Specified by:
countin interfaceCheckResult- Returns:
- the number of checks performed
-
sample
public Option<Tuple> sample()
Description copied from interface:CheckResultAn optional sample which falsified the property or which lead to an error.- Specified by:
samplein interfaceCheckResult- Returns:
- an optional sample
-
error
public Option<java.lang.Error> error()
Description copied from interface:CheckResultAn optional error.- Specified by:
errorin interfaceCheckResult- Returns:
- an optional error
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-