public class AssertGroupSizeMoreThan extends AssertGroupBase
GroupAssertion
that asserts the number of items in the current group
is more than the given size.
If a patternString is given, only grouping keys that match the regular expression will have this assertion applied.
Note multiple key values will be delimited by a tab character.AssertGroupBase.Context
patternString, size
fieldDeclaration, numArgs, trace
Constructor and Description |
---|
AssertGroupSizeMoreThan(long size)
Constructor AssertGroupSizeMoreThan creates a new AssertGroupSizeMoreThan instance.
|
AssertGroupSizeMoreThan(java.lang.String patternString,
long size)
Constructor AssertGroupSizeMoreThan creates a new AssertGroupSizeMoreThan instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
assertFails(java.lang.Long groupSize) |
long |
getSize() |
aggregate, doAssert, equals, getPatternString, hashCode, prepare, start
fail, fail, getMessage, supportsPlannerLevel, throwFail, throwFail
cleanup, flush, getFieldDeclaration, getNumArgs, getTrace, isSafe, printOperationInternal, toString, toStringInternal
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
supportsPlannerLevel
cleanup, flush, getFieldDeclaration, getNumArgs, isSafe
@ConstructorProperties(value="size") public AssertGroupSizeMoreThan(long size)
size
- of type long@ConstructorProperties(value={"patternString","size"}) public AssertGroupSizeMoreThan(java.lang.String patternString, long size)
patternString
- of type Stringsize
- of type longpublic long getSize()
getSize
in class AssertGroupBase
protected boolean assertFails(java.lang.Long groupSize)
assertFails
in class AssertGroupBase
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.