Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API docs on custom helpers has a typo #1078

Open
yorkish opened this issue Feb 5, 2019 · 1 comment
Labels
Bug

Comments

@yorkish
Copy link

@yorkish yorkish commented Feb 5, 2019

Excerpt from the online doc:

`Helper stringLengthHelper = new Helper() {
@override
public Object apply(String context, Options options) throws IOException {
return context.length();
}
};

@rule
public WireMockRule wm = new WireMockRule(options()
.extensions(new ResponseTemplateTransformer(false), "string-length", stringLengthHelper)
);`

should be:

`Helper stringLengthHelper = new Helper() {
@override
public Object apply(String context, Options options) throws IOException {
return context.length();
}
};

@rule
public WireMockRule wm = new WireMockRule(options()
.extensions(new ResponseTemplateTransformer(false, "string-length", stringLengthHelper))
);`

@tomakehurst tomakehurst added the Bug label Mar 17, 2019
@lchrzaszcz

This comment has been minimized.

Copy link
Contributor

@lchrzaszcz lchrzaszcz commented Oct 24, 2019

Hi, I'd like to fix this typo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.