Skip to content

JayeshS/assertj-jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages