public static class MethodNameTransformer.Suffixing extends Object implements MethodNameTransformer
$.MethodNameTransformer.Prefixing, MethodNameTransformer.Suffixing| Constructor and Description |
|---|
Suffixing(String suffix)
Creates a new suffixing method name transformer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
toString() |
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.
|
public Suffixing(String suffix)
suffix - The suffix to add to the method name before the seed.public static MethodNameTransformer withRandomSuffix()
public String transform(MethodDescription methodDescription)
MethodNameTransformertransform in interface MethodNameTransformermethodDescription - The original method.Copyright © 2014–2016. All rights reserved.