public class RestDocumentationContextPlaceholderResolver extends Object implements PropertyPlaceholderHelper.PlaceholderResolver
PropertyPlaceholderHelper.PlaceholderResolver that resolves placeholders using a
RestDocumentationContext. The following placeholders are supported:
step – the step current
count.
methodName - the name of the
current test method formatted
using camelCase
method-name - the name of the
current test method formatted
using kebab-case
method_name - the name of the
current test method formatted
using snake_case
| Constructor and Description |
|---|
RestDocumentationContextPlaceholderResolver(RestDocumentationContext context)
Creates a new placeholder resolver that will resolve placeholders using the given
context. |
public RestDocumentationContextPlaceholderResolver(RestDocumentationContext context)
context.context - the context to usepublic String resolvePlaceholder(String placeholderName)
resolvePlaceholder in interface PropertyPlaceholderHelper.PlaceholderResolver