We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
WireMockContainer
Current methods
public String getEndpoint() { return String.format("http://%s:%d", getHost(), getMappedPort(PORT)); } public URI getRequestURI(String relativePath) throws URISyntaxException { return new URI(getEndpoint() + "/" + relativePath); }
Align method names with WireMockServer class
public String baseUrl() { return String.format("http://%s:%d", getHost(), getMappedPort(PORT)); } public String url(String path) { if (!path.startsWith("/")) { path = "/" + path; } return baseUrl() + path; }
Motivation
public String getEndpoint() { return String.format("http://%s:%d", getHost(), getMappedPort(PORT)); } public String getEndpoint(String path) { if (!path.startsWith("/")) { path = "/" + path; } return getEndpoint() + path }
getEndpoint
/
No response
The text was updated successfully, but these errors were encountered:
+1 for alignment of the methods, or maybe even having a shared interface in the [far] future
Sorry, something went wrong.
wiremock#33 Align methods of WireMockContainer and WireMockServer
be7dfc0
92bbcb9
1e4d0fb
63b843a
93007e9
Merge pull request #34 from bitxon/feature/align-method-names
ebb9b7a
#33 Align methods of WireMockContainer and WireMockServer
No branches or pull requests
Proposal
Goal is to simplify public interface of the
WireMockContainer
classCurrent methods
Option 1
Align method names with WireMockServer class
Motivation
Option 2
Motivation
getEndpoint
/
and without itReferences
No response
The text was updated successfully, but these errors were encountered: