|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert net.sf.json.test.JSONAssert
public class JSONAssert
Provides assertions on equality for JSON strings and JSON types.
Constructor Summary | |
---|---|
JSONAssert()
|
Method Summary | |
---|---|
static void |
assertEquals(JSONArray expected,
JSONArray actual)
Asserts that two JSONArrays are equal. |
static void |
assertEquals(JSONArray expected,
String actual)
Asserts that two JSONArrays are equal. |
static void |
assertEquals(JSONFunction expected,
String actual)
Asserts that two JSONFunctions are equal. |
static void |
assertEquals(JSON expected,
JSON actual)
Asserts that two JSON values are equal. |
static void |
assertEquals(JSONNull expected,
String actual)
Asserts that two JSONNulls are equal. |
static void |
assertEquals(JSONObject expected,
JSONObject actual)
Asserts that two JSONObjects are equal. |
static void |
assertEquals(JSONObject expected,
String actual)
Asserts that two JSONObjects are equal. |
static void |
assertEquals(String expected,
JSONArray actual)
Asserts that two JSONArrays are equal. |
static void |
assertEquals(String message,
JSONArray expected,
JSONArray actual)
Asserts that two JSONArrays are equal. |
static void |
assertEquals(String message,
JSONArray expected,
String actual)
Asserts that two JSONArrays are equal. |
static void |
assertEquals(String expected,
JSONFunction actual)
Asserts that two JSONFunctions are equal. |
static void |
assertEquals(String message,
JSONFunction expected,
String actual)
Asserts that two JSONFunctions are equal. |
static void |
assertEquals(String message,
JSON expected,
JSON actual)
Asserts that two JSON values are equal. |
static void |
assertEquals(String expected,
JSONNull actual)
Asserts that two JSONNulls are equal. |
static void |
assertEquals(String message,
JSONNull expected,
String actual)
Asserts that two JSONNulls are equal. |
static void |
assertEquals(String expected,
JSONObject actual)
Asserts that two JSONObjects are equal. |
static void |
assertEquals(String message,
JSONObject expected,
JSONObject actual)
Asserts that two JSONObjects are equal. |
static void |
assertEquals(String message,
JSONObject expected,
String actual)
Asserts that two JSONObjects are equal. |
static void |
assertEquals(String message,
String expected,
JSONArray actual)
Asserts that two JSONArrays are equal. |
static void |
assertEquals(String message,
String expected,
JSONFunction actual)
Asserts that two JSONFunctions are equal. |
static void |
assertEquals(String message,
String expected,
JSONNull actual)
Asserts that two JSONNulls are equal. |
static void |
assertEquals(String message,
String expected,
JSONObject actual)
Asserts that two JSONObjects are equal. |
static void |
assertJsonEquals(String expected,
String actual)
Asserts that two JSON strings are equal. |
static void |
assertJsonEquals(String message,
String expected,
String actual)
Asserts that two JSON strings are equal. |
static void |
assertNotNull(JSON json)
Asserts that a JSON value is not null. Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject() |
static void |
assertNotNull(String message,
JSON json)
Asserts that a JSON value is not null. Fails if: JSONNull.getInstance().equals( json ) ((JSONObject) json).isNullObject() |
static void |
assertNull(JSON json)
Asserts that a JSON value is null. Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject() |
static void |
assertNull(String message,
JSON json)
Asserts that a JSON value is null. Fails if: !JSONNull.getInstance().equals( json ) !((JSONObject) json).isNullObject() |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JSONAssert()
Method Detail |
---|
public static void assertEquals(JSON expected, JSON actual)
public static void assertEquals(JSONArray expected, JSONArray actual)
public static void assertEquals(JSONArray expected, String actual)
public static void assertEquals(JSONFunction expected, String actual)
public static void assertEquals(JSONNull expected, String actual)
public static void assertEquals(JSONObject expected, JSONObject actual)
public static void assertEquals(JSONObject expected, String actual)
public static void assertEquals(String message, JSON expected, JSON actual)
public static void assertEquals(String expected, JSONArray actual)
public static void assertEquals(String message, JSONArray expected, JSONArray actual)
public static void assertEquals(String message, JSONArray expected, String actual)
public static void assertEquals(String expected, JSONFunction actual)
public static void assertEquals(String message, JSONFunction expected, String actual)
public static void assertEquals(String expected, JSONNull actual)
public static void assertEquals(String message, JSONNull expected, String actual)
public static void assertEquals(String expected, JSONObject actual)
public static void assertEquals(String message, JSONObject expected, JSONObject actual)
public static void assertEquals(String message, JSONObject expected, String actual)
public static void assertEquals(String message, String expected, JSONArray actual)
public static void assertEquals(String message, String expected, JSONFunction actual)
public static void assertEquals(String message, String expected, JSONNull actual)
public static void assertEquals(String message, String expected, JSONObject actual)
public static void assertJsonEquals(String expected, String actual)
public static void assertJsonEquals(String message, String expected, String actual)
public static void assertNotNull(JSON json)
public static void assertNotNull(String message, JSON json)
public static void assertNull(JSON json)
public static void assertNull(String message, JSON json)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |