@HashCodeAndEqualsPlugin.Enhance public static class MethodNameTransformer.Suffixing extends java.lang.Object implements MethodNameTransformer
$
.MethodNameTransformer.Prefixing, MethodNameTransformer.Suffixing
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_SUFFIX
The default suffix to add to an original method name.
|
private java.lang.String |
suffix
The suffix to append to a method name.
|
Constructor and Description |
---|
Suffixing(java.lang.String suffix)
Creates a new suffixing method name transformer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
transform(MethodDescription methodDescription)
Transforms a method's name to an alternative name.
|
static MethodNameTransformer |
withRandomSuffix()
Creates a new suffixing method name transformer which adds a default suffix with a random name component.
|
private static final java.lang.String DEFAULT_SUFFIX
private final java.lang.String suffix
public Suffixing(java.lang.String suffix)
suffix
- The suffix to add to the method name before the seed.public static MethodNameTransformer withRandomSuffix()
public java.lang.String transform(MethodDescription methodDescription)
transform
in interface MethodNameTransformer
methodDescription
- The original method.