Skip to content

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

@SiKing

Description

@SiKing

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions