|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.social.dataservice.integration.TestUtils
public class TestUtils
Collection of utilities to assist in testing.
| Constructor Summary | |
|---|---|
TestUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
jsonsEqual(java.lang.String json1,
java.lang.String json2)
Tests two JSON strings for equality by performing a deep comparison. |
static java.lang.String |
loadTestFixture(java.lang.String path)
Loads the contents of the test fixture specified at the given path. |
static boolean |
xmlsEqual(java.lang.String xml1,
java.lang.String xml2)
Tests the DOMs represented by two XML strings for equality by performing a deep comparison. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestUtils()
| Method Detail |
|---|
public static java.lang.String loadTestFixture(java.lang.String path)
throws java.io.IOException
path - specifies the file to load the contents of
java.io.IOException
public static boolean jsonsEqual(java.lang.String json1,
java.lang.String json2)
throws java.lang.Exception
json1 - represents a JSON object to compare with json2json2 - represents a JSON object to compare with json1
java.lang.Exception
public static boolean xmlsEqual(java.lang.String xml1,
java.lang.String xml2)
throws java.lang.Exception
xml1 - represents the XML DOM to compare with xml2xml2 - represents the XML DOM to compare with xml1
return true if the represented DOMs are equal, false otherwise
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||