org.apache.ws.security.message.token
Class SecurityTokenReferenceTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.apache.ws.security.message.token.SecurityTokenReferenceTest

public class SecurityTokenReferenceTest
extends org.junit.Assert

Some tests for the SecurityTokenReference class.


Constructor Summary
SecurityTokenReferenceTest()
           
 
Method Summary
 void testEmbeddedSTRChild()
          Test for a SecurityTokenReference having an Embedded Child, which in turn has a SecurityTokenReference child.
 void testKeyIdentifierBadEncodingType()
          Test for a SecurityTokenReference having a Key Identifier with a bad EncodingType
 void testKeyIdentifierNoEncodingType()
          Test for a SecurityTokenReference having a Key Identifier with no EncodingType
 void testKeyIdentifierNoValueType()
          Test for a SecurityTokenReference having a Key Identifier with no ValueType
 void testKeyIdentifierSAMLNoEncodingType()
          Test for a SecurityTokenReference having a Key Identifier with no EncodingType, but it should pass as the ValueType is for a SAML Assertion.
 void testMultipleChildren()
          Test for a SecurityTokenReference having multiple data references
 void testMultipleEmbeddedChildren()
          Test for a SecurityTokenReference having an Embedded Child, which has multiple children.
 void testReferenceNoURI()
          Test for a Reference with no URI
 
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

SecurityTokenReferenceTest

public SecurityTokenReferenceTest()
Method Detail

testReferenceNoURI

public void testReferenceNoURI()
                        throws java.lang.Exception
Test for a Reference with no URI

Throws:
java.lang.Exception

testMultipleChildren

public void testMultipleChildren()
                          throws java.lang.Exception
Test for a SecurityTokenReference having multiple data references

Throws:
java.lang.Exception

testKeyIdentifierNoValueType

public void testKeyIdentifierNoValueType()
                                  throws java.lang.Exception
Test for a SecurityTokenReference having a Key Identifier with no ValueType

Throws:
java.lang.Exception

testKeyIdentifierBadEncodingType

public void testKeyIdentifierBadEncodingType()
                                      throws java.lang.Exception
Test for a SecurityTokenReference having a Key Identifier with a bad EncodingType

Throws:
java.lang.Exception

testKeyIdentifierNoEncodingType

public void testKeyIdentifierNoEncodingType()
                                     throws java.lang.Exception
Test for a SecurityTokenReference having a Key Identifier with no EncodingType

Throws:
java.lang.Exception

testKeyIdentifierSAMLNoEncodingType

public void testKeyIdentifierSAMLNoEncodingType()
                                         throws java.lang.Exception
Test for a SecurityTokenReference having a Key Identifier with no EncodingType, but it should pass as the ValueType is for a SAML Assertion.

Throws:
java.lang.Exception

testEmbeddedSTRChild

public void testEmbeddedSTRChild()
                          throws java.lang.Exception
Test for a SecurityTokenReference having an Embedded Child, which in turn has a SecurityTokenReference child.

Throws:
java.lang.Exception

testMultipleEmbeddedChildren

public void testMultipleEmbeddedChildren()
                                  throws java.lang.Exception
Test for a SecurityTokenReference having an Embedded Child, which has multiple children.

Throws:
java.lang.Exception


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.