org.apache.shindig.social.core.oauth
Class OAuth2ClientCredentialFlowTest

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.core.oauth.OAuth2ClientCredentialFlowTest

public class OAuth2ClientCredentialFlowTest
extends AbstractLargeRestfulTests


Field Summary
protected static java.lang.String CLIENT_CRED_CLIENT
           
protected static java.lang.String CLIENT_CRED_SECRET
           
protected  org.apache.shindig.social.core.oauth2.OAuth2Servlet servlet
           
 
Fields inherited from class org.apache.shindig.social.dataservice.integration.AbstractLargeRestfulTests
injector, XMLSCHEMA, xp, XSDRESOURCE
 
Constructor Summary
OAuth2ClientCredentialFlowTest()
           
 
Method Summary
 void abstractLargeRestfulBefore()
           
 void testClientCredFlowBadHeader()
          Test using basic authentication scheme for client cred flow
 void testClientCredFlowBadPass()
          Test using basic authentication scheme for client cred flow
 void testClientCredFlowBasicAuth()
          Test using basic authentication scheme for client cred flow
 void testClientCredFlowParams()
          Test using URL parameter with client cred flow
 
Methods inherited from class org.apache.shindig.social.dataservice.integration.AbstractLargeRestfulTests
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
 

Field Detail

CLIENT_CRED_CLIENT

protected static final java.lang.String CLIENT_CRED_CLIENT
See Also:
Constant Field Values

CLIENT_CRED_SECRET

protected static final java.lang.String CLIENT_CRED_SECRET
See Also:
Constant Field Values

servlet

protected org.apache.shindig.social.core.oauth2.OAuth2Servlet servlet
Constructor Detail

OAuth2ClientCredentialFlowTest

public OAuth2ClientCredentialFlowTest()
Method Detail

abstractLargeRestfulBefore

public void abstractLargeRestfulBefore()
                                throws java.lang.Exception
Overrides:
abstractLargeRestfulBefore in class AbstractLargeRestfulTests
Throws:
java.lang.Exception

testClientCredFlowBadHeader

public void testClientCredFlowBadHeader()
                                 throws java.lang.Exception
Test using basic authentication scheme for client cred flow

Throws:
java.lang.Exception

testClientCredFlowBadPass

public void testClientCredFlowBadPass()
                               throws java.lang.Exception
Test using basic authentication scheme for client cred flow

Throws:
java.lang.Exception

testClientCredFlowBasicAuth

public void testClientCredFlowBasicAuth()
                                 throws java.lang.Exception
Test using basic authentication scheme for client cred flow

Throws:
java.lang.Exception

testClientCredFlowParams

public void testClientCredFlowParams()
                              throws java.lang.Exception
Test using URL parameter with client cred flow

Throws:
java.lang.Exception


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.