public static class WsTester.Result extends Object
| Modifier and Type | Method and Description |
|---|---|
WsTester.Result |
assertJson(Class clazz,
String expectedJsonFilename)
Compares JSON response with JSON file available in classpath.
|
WsTester.Result |
assertJson(String expectedJson) |
WsTester.Result |
assertNoContent() |
String |
outputAsString() |
public WsTester.Result assertNoContent()
public String outputAsString()
public WsTester.Result assertJson(String expectedJson) throws Exception
Exceptionpublic WsTester.Result assertJson(Class clazz, String expectedJsonFilename) throws Exception
clazz - the test classjsonResourceFilename - name of the file containing the expected JSONExceptionCopyright © 2009-2014 SonarSource. All Rights Reserved.