edu.internet2.middleware.shibboleth.idp.system.conf1
Class SAML2SSOTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.custommonkey.xmlunit.XMLTestCase
              extended by edu.internet2.middleware.shibboleth.idp.TestCaseBase
                  extended by edu.internet2.middleware.shibboleth.idp.system.conf1.BaseConf1TestCase
                      extended by edu.internet2.middleware.shibboleth.idp.system.conf1.SAML2SSOTestCase
All Implemented Interfaces:
junit.framework.Test, org.custommonkey.xmlunit.XMLConstants, org.custommonkey.xmlunit.XSLTConstants

public class SAML2SSOTestCase
extends BaseConf1TestCase


Field Summary
 
Fields inherited from class edu.internet2.middleware.shibboleth.idp.TestCaseBase
builderFactory, marshallerFactory, parser, unmarshallerFactory
 
Fields inherited from interface org.custommonkey.xmlunit.XSLTConstants
JAVA5_XSLTC_FACTORY_NAME, XSLT_END, XSLT_IDENTITY_TEMPLATE, XSLT_START, XSLT_START_NO_VERSION, XSLT_STRIP_COMMENTS_TEMPLATE, XSLT_STRIP_WHITESPACE, XSLT_XML_OUTPUT_NOINDENT
 
Fields inherited from interface org.custommonkey.xmlunit.XMLConstants
CLOSE_NODE, END_CDATA, END_COMMENT, END_PROCESSING_INSTRUCTION, OPEN_END_NODE, OPEN_START_NODE, START_CDATA, START_COMMENT, START_DOCTYPE, START_PROCESSING_INSTRUCTION, W3C_XML_SCHEMA_INSTANCE_NO_NAMESPACE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_INSTANCE_NS_URI, W3C_XML_SCHEMA_INSTANCE_SCHEMA_LOCATION_ATTR, W3C_XML_SCHEMA_NS_URI, XML_DECLARATION, XMLNS_PREFIX, XPATH_ATTRIBUTE_IDENTIFIER, XPATH_CHARACTER_NODE_IDENTIFIER, XPATH_COMMENT_IDENTIFIER, XPATH_NODE_INDEX_END, XPATH_NODE_INDEX_START, XPATH_PROCESSING_INSTRUCTION_IDENTIFIER, XPATH_SEPARATOR
 
Constructor Summary
SAML2SSOTestCase()
           
 
Method Summary
protected  AuthnRequest buildAuthnRequest(String relyingPartyId)
           
protected  edu.internet2.middleware.shibboleth.idp.authn.Saml2LoginContext buildLoginContext(String relyingPartyId)
           
protected  org.springframework.mock.web.MockHttpServletRequest buildServletRequest(String relyingPartyId)
           
protected  String getSamlRequestString(AuthnRequest request)
           
 void testAuthenticationWithoutConfiguredSSO()
          Tests that the handler correctly fails out if the SSO profile is not configured.
 void testFirstAuthenticationLeg()
          Tests initial leg of the SSO request where request is decoded and sent to the authentication engine.
 void testSecondAuthenticationLeg()
          Tests second leg of the SSO request where request returns to SSO handler and AuthN statement is generated.
 
Methods inherited from class edu.internet2.middleware.shibboleth.idp.system.conf1.BaseConf1TestCase
getApplicationContext, setUp
 
Methods inherited from class edu.internet2.middleware.shibboleth.idp.TestCaseBase
assertEquals, assertEquals, createSpringContext, createSpringContext, createSpringContext, createSpringContext, unmarshallElement
 
Methods inherited from class org.custommonkey.xmlunit.XMLTestCase
assertNodeTestPasses, assertNodeTestPasses, assertNodeTestPasses, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLEqual, assertXMLIdentical, assertXMLIdentical, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLNotEqual, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXMLValid, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathEvaluatesTo, assertXpathExists, assertXpathExists, assertXpathExists, assertXpathNotExists, assertXpathNotExists, assertXpathNotExists, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathsNotEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, assertXpathValuesNotEqual, compareXML, compareXML, compareXML, compareXML, compareXML, compareXML
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SAML2SSOTestCase

public SAML2SSOTestCase()
Method Detail

testFirstAuthenticationLeg

public void testFirstAuthenticationLeg()
                                throws Exception
Tests initial leg of the SSO request where request is decoded and sent to the authentication engine.

Throws:
Exception

testSecondAuthenticationLeg

public void testSecondAuthenticationLeg()
                                 throws Exception
Tests second leg of the SSO request where request returns to SSO handler and AuthN statement is generated.

Throws:
Exception

testAuthenticationWithoutConfiguredSSO

public void testAuthenticationWithoutConfiguredSSO()
                                            throws Exception
Tests that the handler correctly fails out if the SSO profile is not configured.

Throws:
Exception

buildServletRequest

protected org.springframework.mock.web.MockHttpServletRequest buildServletRequest(String relyingPartyId)
                                                                           throws Exception
Throws:
Exception

buildLoginContext

protected edu.internet2.middleware.shibboleth.idp.authn.Saml2LoginContext buildLoginContext(String relyingPartyId)
                                                                                     throws Exception
Throws:
Exception

buildAuthnRequest

protected AuthnRequest buildAuthnRequest(String relyingPartyId)

getSamlRequestString

protected String getSamlRequestString(AuthnRequest request)
                               throws MarshallingException
Throws:
MarshallingException


Copyright © 1999-2012. All Rights Reserved.