Jester
Jester - a JSON test tool
Building Jester
Clone or download the source code and either:
Open the 'jester' folder in NetBeans or your favourite IDE, and build it.
Build a package from the command line with mvn package
Running jester
Once built, either double-click Jester-0.2.jar
in the target
folder, or start from the command line with java -jar target/Jester-0.2.jar
Then enter an API URI and click GET
The GET request is made and the response parsed to a tree view representation of the JSON data. data values can be 'asserted' on
The 'assert' action writes a Java statement into the right-hand pane
This generates jUnit output using REST Assured
@Test
public void test1() {
//get:https://api.github.com/users/objectivetester
given().when().header("MyHeader", "foo").cookie("JSESSIONID", "1234").get("https://api.github.com/users/objectivetester").then()
//assert:name=Steve Mellor
.body("name", equalTo("Steve Mellor"))
.statusCode(200);
}
Junit 4 and jUnit 5 output can be generated.
Jester also supports POST and DELETE, and the import and editing of JSON data.