Class HasSize
java.lang.Object
uk.org.webcompere.modelassert.json.condition.HasSize
- All Implemented Interfaces:
Condition
A size condition - works out the size of the target
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Describe the conditionstatic <A> NumberComparisonDsl<A>Switch to Size Condition building context to allow the size to be spectest(com.fasterxml.jackson.databind.JsonNode json) Execute the test of the condition
-
Constructor Details
-
HasSize
public HasSize(int requiredSize)
-
-
Method Details
-
sizeOf
Switch to Size Condition building context to allow the size to be spec- Type Parameters:
A- the type of resulting assertion- Parameters:
parentAssertion- the parent assertion to resolve to, when the size is provided- Returns:
- a
NumberComparisonDslfor stipulating the size
-
test
Description copied from interface:ConditionExecute the test of the condition -
describe
Description copied from interface:ConditionDescribe the condition
-