JayeshS / assertj-jersey

AssertJ assertions for Jersey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

assertj-jersey

Fluent AssertJ assertions for Jersey

    Response response = client.request().get();
    /**
    Say this is the response...
    {
      "message": "Hello World",
      "details": {
        "code": 1,
        "num": 10
      }
    }
    **/
    assertThat(response)
            .isSuccessful()
            .hasContentType("application/json")
            .matchesJson("message", "Hello World")
            .matchesJson(".details[0].code", 1);

License

About

AssertJ assertions for Jersey


Languages

Language:Java 100.0%