Package | Description |
---|---|
com.asakusafw.testdriver.excel |
Test data/condition definitions in Excel sheets.
|
com.asakusafw.testdriver.excel.extension |
Extensions for test data providers using Excel books.
|
com.asakusafw.testdriver.rule |
Tiny rule builder.
|
Modifier and Type | Method and Description |
---|---|
ValuePredicate<?> |
ExcelSheetRuleExtension.resolve(VerifyContext context,
PropertyName name,
PropertyType type,
String expression)
Resolves a rule expression and returns its
ValuePredicate . |
Modifier and Type | Method and Description |
---|---|
ValuePredicate<?> |
ExcelSheetApproximateRule.resolve(VerifyContext context,
PropertyName name,
PropertyType type,
String expression) |
ValuePredicate<?> |
ExcelSheetOrdinalRule.resolve(VerifyContext context,
PropertyName name,
PropertyType type,
String expression) |
Modifier and Type | Class and Description |
---|---|
class |
BothAreNull
Accepts iff both expected and actual value are null.
|
class |
CalendarCompare
Accepts iff satisfies
actual-value <compare-operator> expected-value . |
class |
CalendarRange
Accepts iff actual calendar is in [ expected + lower-bound, expected + upper-bound ].
|
class |
ContainsString
Accepts iff actual contains expected string.
|
class |
DecimalCompare
Accepts iff satisfies
actual-value <compare-operator> expected-value . |
class |
DecimalRange
Accepts iff actual decimal is in [ expected + lower-bound, expected + upper-bound ].
|
class |
Equals
Accepts iff both values are equal and not null.
|
class |
ExpectConstant<T>
Provides constant as expected value to a succeeding predicate.
|
class |
FloatCompare
Accepts iff satisfies
actual-value <compare-operator> expected-value . |
class |
FloatRange
Accepts iff actual float is in [ expected + lower-bound, expected + upper-bound ].
|
class |
IntegerCompare
Accepts iff satisfies
actual-value <compare-operator> expected-value . |
class |
IntegerRange
Accepts iff actual integer is in [ expected + lower-bound, expected + upper-bound ].
|
class |
IsNull
Accepts iff actual value is null.
|
class |
Not<T>
Logical-not.
|
class |
Period
Accepts iff actual calendar is between begin and end.
|
Modifier and Type | Method and Description |
---|---|
static ValuePredicate<String> |
Predicates.containsString()
Returns
ContainsString predicate. |
static ValuePredicate<Calendar> |
Predicates.dateRange(int lower,
int upper)
Returns
CalendarRange predicate with date scaled. |
static ValuePredicate<BigDecimal> |
Predicates.decimalRange(BigDecimal lower,
BigDecimal upper)
Returns
FloatRange predicate. |
static ValuePredicate<Object> |
Predicates.equals()
Returns
Equals predicate. |
static ValuePredicate<Object> |
Predicates.equalTo(Object value)
Returns a predicate that accepts iff actual value is equalt to the specified value.
|
static ValuePredicate<Number> |
Predicates.floatRange(double lower,
double upper)
Returns
FloatRange predicate. |
static ValuePredicate<Number> |
Predicates.integerRange(long lower,
long upper)
Returns
IntegerRange predicate. |
static ValuePredicate<Object> |
Predicates.isNull()
Returns
IsNull predicate. |
static <T> ValuePredicate<T> |
Predicates.not(ValuePredicate<T> predicate)
Returns
Not predicate. |
static ValuePredicate<Calendar> |
Predicates.period(Calendar begin,
Calendar end)
Returns
Period predicate. |
static ValuePredicate<Calendar> |
Predicates.timeRange(int lower,
int upper)
Returns
CalendarRange predicate with second scaled. |
Modifier and Type | Method and Description |
---|---|
VerifyRuleBuilder.Property |
VerifyRuleBuilder.Property.accept(ValuePredicate<?> predicate)
Adds acceptable predicate between expected value and actual value to this property.
|
static <T> ValuePredicate<T> |
Predicates.not(ValuePredicate<T> predicate)
Returns
Not predicate. |
Constructor and Description |
---|
ExpectConstant(T constant,
ValuePredicate<T> successor)
Creates a new instance.
|
Not(ValuePredicate<T> factor)
Creates a new instance.
|
Constructor and Description |
---|
PropertyCondition(PropertyName name,
Class<? extends T> type,
List<? extends ValuePredicate<? super T>> predicates)
Creates a new instance.
|
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.