jabrena / functional-rosetta-stone

A repository to review the main concepts about Functional Programming with Java
https://jabrena.github.io/functional-rosetta-stone/
Apache License 2.0
9 stars 3 forks source link

Review MockServer #20

Closed jabrena closed 4 years ago

jabrena commented 4 years ago

http://www.mock-server.com/ http://www.mock-server.com/mock_server/creating_expectations.html#button_match_request_by_path_exactly_twice

new MockServerClient("localhost", 1080)
    .when(
        request()
            .withPath("/some/path"),
        Times.exactly(2)
    )
    .respond(
        response()
            .withBody("some_response_body")
    );
jabrena commented 4 years ago

Rejected by LEAN