com.atlassian.crowd.plugin.saml
Class TestSAMLMessageManagerImpl

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jmock.core.VerifyingTestCase
              extended by org.jmock.core.MockObjectSupportTestCase
                  extended by org.jmock.MockObjectTestCase
                      extended by com.atlassian.crowd.plugin.saml.TestSAMLMessageManagerImpl
All Implemented Interfaces:
junit.framework.Test

public class TestSAMLMessageManagerImpl
extends org.jmock.MockObjectTestCase


Field Summary
 
Fields inherited from class org.jmock.core.MockObjectSupportTestCase
ANYTHING, NOT_NULL, NULL
 
Constructor Summary
TestSAMLMessageManagerImpl()
           
 
Method Summary
protected  void setUp()
           
 void testDeleteKeys_existingKeys()
           
 void testDeleteKeys_noneExists()
           
 void testGenerateAuthResponse_noKeys()
           
 void testGenerateAuthResponse_success()
           
 void testGenerateKeys_new()
           
 void testGenerateKeys_overwrite()
           
 void testInitialLoadKeys_keysPresent()
           
 void testInitialLoadKeys_noKeys()
           
 void testParseAuthRequest_fail()
           
 void testParseAuthRequest_null()
           
 void testParseAuthRequest_success()
           
 
Methods inherited from class org.jmock.MockObjectTestCase
atLeastOnce, atMostOnce, defaultMockNameForType, doAll, doAll, doAll, doAll, exactly, mock, mock, never, never, newCoreMock, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwException
 
Methods inherited from class org.jmock.core.MockObjectSupportTestCase
and, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, collectionContaining, collectionContaining, compatibleType, contains, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, hasProperty, hasProperty, isA, isIn, isIn, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, newDummy, newDummy, newDummy, not, or, same, startsWith, stringContains, toString
 
Methods inherited from class org.jmock.core.VerifyingTestCase
registerToVerify, runBare, unregisterToVerify, verify
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestSAMLMessageManagerImpl

public TestSAMLMessageManagerImpl()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testInitialLoadKeys_noKeys

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

testInitialLoadKeys_keysPresent

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

testGenerateKeys_new

public void testGenerateKeys_new()
                          throws SAMLException,
                                 java.security.NoSuchAlgorithmException,
                                 java.io.IOException,
                                 java.security.spec.InvalidKeySpecException,
                                 java.security.SignatureException,
                                 java.security.InvalidKeyException
Throws:
SAMLException
java.security.NoSuchAlgorithmException
java.io.IOException
java.security.spec.InvalidKeySpecException
java.security.SignatureException
java.security.InvalidKeyException

testGenerateKeys_overwrite

public void testGenerateKeys_overwrite()
                                throws java.io.IOException,
                                       java.security.NoSuchAlgorithmException,
                                       java.security.spec.InvalidKeySpecException,
                                       SAMLException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
SAMLException

testDeleteKeys_noneExists

public void testDeleteKeys_noneExists()

testDeleteKeys_existingKeys

public void testDeleteKeys_existingKeys()
                                 throws java.io.IOException
Throws:
java.io.IOException

testParseAuthRequest_success

public void testParseAuthRequest_success()
                                  throws java.io.UnsupportedEncodingException,
                                         SAMLException
Throws:
java.io.UnsupportedEncodingException
SAMLException

testParseAuthRequest_null

public void testParseAuthRequest_null()

testParseAuthRequest_fail

public void testParseAuthRequest_fail()
                               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

testGenerateAuthResponse_noKeys

public void testGenerateAuthResponse_noKeys()
                                     throws SAMLException
Throws:
SAMLException

testGenerateAuthResponse_success

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


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.