public class ParameterPlaceholder extends BasePlaceholder
String
according to the
given index or range subscript (see DataProvider.format()
. Furthermore the following parameter values are
treated specially:
Parameter value | target String |
---|---|
null | <null> |
"" (= empty string) | <empty string> |
array (e.g. String[]) | "[" + formatPattern(array) + "]" |
other | Object.toString() |
idx, method, parameters
Constructor and Description |
---|
ParameterPlaceholder() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
format(java.lang.Object param) |
protected java.lang.String |
formatAll(java.lang.Object[] parameters)
Formats the given parameters by retrieving it's
String representation and separate it by comma (=
, ). |
protected java.lang.String |
getReplacementFor(java.lang.String placeholder)
Generate and returns the replacement for the found and given placeholder.
|
process, setContext
protected java.lang.String getReplacementFor(java.lang.String placeholder)
BasePlaceholder
getReplacementFor
in class BasePlaceholder
placeholder
- for which the replacement String
should be returnedplaceholder
(not null
)protected java.lang.String formatAll(java.lang.Object[] parameters)
String
representation and separate it by comma (=
,
).parameters
- to be formattedString
representation of the given Object
[]
protected java.lang.String format(java.lang.Object param)