org.apache.shindig.social.dataservice.integration
Class RestfulJsonDataTest
java.lang.Object
org.junit.Assert
org.apache.shindig.common.EasyMockTestCase
org.apache.shindig.social.dataservice.integration.AbstractLargeRestfulTests
org.apache.shindig.social.dataservice.integration.RestfulJsonDataTest
public class RestfulJsonDataTest
- extends AbstractLargeRestfulTests
|
Method Summary |
void |
testDeleteAppData()
|
void |
testGetFriendsAppDataJson()
Expected response for app data in json:
{
"entry" : {
"jane.doe" : {"count" : "7"},
"george.doe" : {"count" : "2"},
"maija.m" : {}, // TODO: Should this entry really be included if she doesn't have any data?
}
} |
void |
testGetSelfAppDataJson()
Expected response for app data in json:
{
"entry" : {
"john.doe" : {"count" : "0"},
}
} |
void |
testGetSelfAppDataJsonWithInvalidKeys()
Expected response for app data in json with non-existant key:
TODO: Double check this output with the spec
{
"entry" : {
"john.doe" : {},
}
} |
void |
testGetSelfAppDataJsonWithKey()
Expected response for app data in json:
{
"entry" : {
"john.doe" : {"count" : "0"},
}
} |
void |
testUpdateAppData()
|
| Methods inherited from class org.apache.shindig.social.dataservice.integration.AbstractLargeRestfulTests |
abstractLargeRestfulBefore, childNodesToMap, childNodesToMapofMap, childNodesToNodeMap, getJson, getResponse, getResponse, getResponse, getResponse, getResponse, getServlet, parseXmlContent, setResponse, setServlet |
| Methods inherited from class org.junit.Assert |
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RestfulJsonDataTest
public RestfulJsonDataTest()
testGetFriendsAppDataJson
public void testGetFriendsAppDataJson()
throws java.lang.Exception
- Expected response for app data in json:
{
"entry" : {
"jane.doe" : {"count" : "7"},
"george.doe" : {"count" : "2"},
"maija.m" : {}, // TODO: Should this entry really be included if she doesn't have any data?
}
}
- Throws:
java.lang.Exception - if test encounters an error
testGetSelfAppDataJson
public void testGetSelfAppDataJson()
throws java.lang.Exception
- Expected response for app data in json:
{
"entry" : {
"john.doe" : {"count" : "0"},
}
}
- Throws:
java.lang.Exception - if test encounters an error
testGetSelfAppDataJsonWithKey
public void testGetSelfAppDataJsonWithKey()
throws java.lang.Exception
- Expected response for app data in json:
{
"entry" : {
"john.doe" : {"count" : "0"},
}
}
- Throws:
java.lang.Exception - if test encounters an error
testGetSelfAppDataJsonWithInvalidKeys
public void testGetSelfAppDataJsonWithInvalidKeys()
throws java.lang.Exception
- Expected response for app data in json with non-existant key:
TODO: Double check this output with the spec
{
"entry" : {
"john.doe" : {},
}
}
- Throws:
java.lang.Exception - if test encounters an error
testDeleteAppData
public void testDeleteAppData()
throws java.lang.Exception
- Throws:
java.lang.Exception
testUpdateAppData
public void testUpdateAppData()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.