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

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.shindig.common.EasyMockTestCase
          extended by org.apache.shindig.social.core.oauth.OAuthAuthenticationHanderTest

public class OAuthAuthenticationHanderTest
extends EasyMockTestCase

Verify behavior of OAuth handler for consumer and 3-legged requests.


Constructor Summary
OAuthAuthenticationHanderTest()
           
 
Method Summary
 void setUp()
           
 void testBodyHashNoContentType()
           
 void testBodyHashSigning()
           
 void testBodySigning()
           
 void testConsumerFailBodyHashSigningWithFormEncoding()
           
 void testFailBodySigning()
           
 void testFailBodySigningWithFormEncoded()
           
 void testNoSignature()
           
 void testStashBody()
           
 void testVerifyConsumerGet()
           
 void testVerifyConsumerGetSignatureInHeader()
           
 void testVerifyConsumerRequest()
           
 void testVerifyConsumerRequestSignatureInAuthHeader()
           
 void testVerifyConsumerRequestSignatureInBody()
           
 void testVerifyFailNoTokenEntry()
           
 void testVerifyFailTokenIsExpired()
           
 void testVerifyFailTokenIsRequest()
           
 void testVerifyFailTokenSecretMismatch()
           
 void testVerifyGet()
           
 void testVerifyGetSignatureInHeader()
           
 void testVerifyOAuthRequest()
           
 void testVerifyRequestSignatureInBody()
           
 
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

OAuthAuthenticationHanderTest

public OAuthAuthenticationHanderTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyOAuthRequest

public void testVerifyOAuthRequest()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyGet

public void testVerifyGet()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyGetSignatureInHeader

public void testVerifyGetSignatureInHeader()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyRequestSignatureInBody

public void testVerifyRequestSignatureInBody()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyFailNoTokenEntry

public void testVerifyFailNoTokenEntry()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyFailTokenSecretMismatch

public void testVerifyFailTokenSecretMismatch()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyFailTokenIsRequest

public void testVerifyFailTokenIsRequest()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyFailTokenIsExpired

public void testVerifyFailTokenIsExpired()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyConsumerRequest

public void testVerifyConsumerRequest()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyConsumerGet

public void testVerifyConsumerGet()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyConsumerGetSignatureInHeader

public void testVerifyConsumerGetSignatureInHeader()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyConsumerRequestSignatureInAuthHeader

public void testVerifyConsumerRequestSignatureInAuthHeader()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

testVerifyConsumerRequestSignatureInBody

public void testVerifyConsumerRequestSignatureInBody()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testNoSignature

public void testNoSignature()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testBodyHashSigning

public void testBodyHashSigning()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testConsumerFailBodyHashSigningWithFormEncoding

public void testConsumerFailBodyHashSigningWithFormEncoding()
                                                     throws java.lang.Exception
Throws:
java.lang.Exception

testStashBody

public void testStashBody()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testBodySigning

public void testBodySigning()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testFailBodySigning

public void testFailBodySigning()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testFailBodySigningWithFormEncoded

public void testFailBodySigningWithFormEncoded()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testBodyHashNoContentType

public void testBodyHashNoContentType()
                               throws java.lang.Exception
Throws:
java.lang.Exception


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