public class AssertGroupSizeLessThan extends AssertGroupBase
GroupAssertion
that asserts the number of items in the current group
is less 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 |
---|
AssertGroupSizeLessThan(long size)
Constructor AssertGroupSizeLessThan creates a new AssertGroupSizeLessThan instance.
|
AssertGroupSizeLessThan(String patternString,
long size)
Constructor AssertGroupSizeLessThan creates a new AssertGroupSizeLessThan instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
assertFails(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 AssertGroupSizeLessThan(long size)
size
- of type long@ConstructorProperties(value={"patternString","size"}) public AssertGroupSizeLessThan(String patternString, long size)
patternString
- of type Stringsize
- of type longpublic long getSize()
getSize
in class AssertGroupBase
protected boolean assertFails(Long groupSize)
assertFails
in class AssertGroupBase
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.