public class CompleteMethodSignaturePlaceholder
extends com.tngtech.junit.dataprovider.placeholder.CompleteMethodSignaturePlaceholder
| Modifier and Type | Field and Description |
|---|---|
protected int |
idx |
protected java.lang.reflect.Method |
method |
protected java.lang.Object[] |
parameters |
| Constructor and Description |
|---|
CompleteMethodSignaturePlaceholder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getReplacementFor(java.lang.String placeholder) |
java.lang.String |
process(java.lang.String formatPattern)
Executes this placeholder for the given
String by searching all occurrences of the regular expression
supplied in the constructor and replaces them with the retrieved replacement from
getReplacementFor(String). |
void |
setContext(java.lang.reflect.Method method,
int idx,
java.lang.Object[] parameters)
Sets the given arguments as context for processing or replacement generation, respectively.
|
protected java.lang.reflect.Method method
protected int idx
protected java.lang.Object[] parameters
public void setContext(java.lang.reflect.Method method,
int idx,
java.lang.Object[] parameters)
method - - test methodidx - - index of the dataprovider rowparameters - of the current dataprovider test to be executedpublic java.lang.String process(java.lang.String formatPattern)
String by searching all occurrences of the regular expression
supplied in the constructor and replaces them with the retrieved replacement from
getReplacementFor(String). If the regular expression does not match, an exact copy of the given
String is returned.formatPattern - to be processedformatPattern containing the generated replacements instead of matching patternsprotected java.lang.String getReplacementFor(java.lang.String placeholder)