org.apache.shindig.social.dataservice.integration
Class RestfulXmlDataTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.shindig.common.EasyMockTestCase
          extended by org.apache.shindig.social.dataservice.integration.AbstractLargeRestfulTests
              extended by org.apache.shindig.social.dataservice.integration.RestfulXmlDataTest

public class RestfulXmlDataTest
extends AbstractLargeRestfulTests


Field Summary
 
Fields inherited from class org.apache.shindig.social.dataservice.integration.AbstractLargeRestfulTests
injector, XMLSCHEMA, xp, XSDRESOURCE
 
Constructor Summary
RestfulXmlDataTest()
           
 
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? } } s
 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.apache.shindig.common.EasyMockTestCase
mock, mock, mock, mock, replay, replay, reset, reset, verify
 
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
 

Constructor Detail

RestfulXmlDataTest

public RestfulXmlDataTest()
Method Detail

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? } } s

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.