wiremock / wiremock/wiremock.org

Issue on Quick Start: API Mocking with Java and JUnit 4

Open
#307 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
12
Forks
71
PR merge metrics
No merged PRs in 30d

Description

Page

/docs/quickstart/java-junit/

Details

After copy/pasting the code. I get a compile error:
wiremockServer cannot be resolved

I tried to change wiremockServer.url("/my/resource") to URI.create(wireMockRule.url("/my/resource")), but then I got:
The method POST(HttpRequest.BodyPublisher) in the type HttpRequest.Builder is not applicable for the arguments ()

Suggested Edits

No response

References

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /docs/quickstart/java-junit/ and reproduce the copy/paste example to confirm both reported compile errors. Update the quick-start example so the Java/JUnit 4 instructions compile as written, then verify the HTTP request example builds without the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.