@API(status=INTERNAL,
since="5.2")
public class AggregationUtils
extends Object
ArgumentsAccessor
or annotated with @AggregateWith).| Modifier and Type | Method and Description |
|---|---|
static boolean |
hasAggregator(Method method)
|
static boolean |
hasPotentiallyValidSignature(Method method)
Determine if the supplied
Method has a potentially
valid signature (i.e., formal parameter declarations) with regard to
aggregators. |
static int |
indexOfFirstAggregator(Method method)
|
static boolean |
isAggregator(Parameter parameter)
Determine if the supplied
Parameter is an aggregator (i.e., of
type ArgumentsAccessor or annotated with AggregateWith). |
public static boolean hasPotentiallyValidSignature(Method method)
Method has a potentially
valid signature (i.e., formal parameter declarations) with regard to
aggregators.
This method takes a best-effort approach at enforcing the following policy for parameterized test methods that accept aggregators as arguments.
ParameterResolver
implementations come last.true if the method has a potentially valid signaturepublic static boolean isAggregator(Parameter parameter)
Parameter is an aggregator (i.e., of
type ArgumentsAccessor or annotated with AggregateWith).true if the parameter is an aggregatorpublic static boolean hasAggregator(Method method)
true if the method has an aggregatorpublic static int indexOfFirstAggregator(Method method)
-1 if not foundCopyright © 2020. All rights reserved.