Class AuthnRequestTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.testing.XMLObjectProviderBaseTestCase
-
- org.opensaml.saml.saml2.core.impl.RequestTestBase
-
- org.opensaml.saml.saml2.core.impl.AuthnRequestTest
-
public class AuthnRequestTest extends RequestTestBase
Unit test forAuthnRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerexpectedAssertionConsumerServiceIndexExpected AssertionConsumerServiceIndex attributeprivate StringexpectedAssertionConsumerServiceURLExpected AssertionConsumerServiceURL attributeprivate IntegerexpectedAttributeConsumingServiceIndexExpected AttributeConsumingServiceIndex attributeprivate XSBooleanValueexpectedForceAuthnExpected ForceAuthn attributeprivate XSBooleanValueexpectedIsPassiveExpected IsPassive attributeprivate StringexpectedProtocolBindingExpected ProtocolBinding attributeprivate StringexpectedProviderNameExpected ProviderName attribute-
Fields inherited from class org.opensaml.saml.saml2.core.impl.RequestTestBase
expectedConsent, expectedDestination, expectedID, expectedIssueInstant, expectedIssuer, expectedSAMLVersion
-
Fields inherited from class org.opensaml.core.testing.XMLObjectProviderBaseTestCase
childElementsFile, expectedChildElementsDOM, expectedDOM, expectedOptionalAttributesDOM, expectedUnknownAttributesDOM, invalidDOM, invalidFile, singleElementFile, singleElementOptionalAttributesFile, singleElementUnknownAttributesFile
-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description AuthnRequestTest()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestAttributeIDnessMarshall()Test marshalling of attribute IDness.voidtestBadSAMLVersion()voidtestChildElementsMarshall()voidtestChildElementsUnmarshall()voidtestSingleElementMarshall()voidtestSingleElementOptionalAttributesMarshall()voidtestSingleElementOptionalAttributesUnmarshall()voidtestSingleElementUnmarshall()voidtestXSBooleanAttributes()Test the proper behavior of the XSBooleanValue attributes.-
Methods inherited from class org.opensaml.saml.saml2.core.impl.RequestTestBase
helperTestChildElementsUnmarshall, helperTestSingleElementOptionalAttributesUnmarshall, helperTestSingleElementUnmarshall, populateChildElements, populateOptionalAttributes, populateRequiredAttributes
-
Methods inherited from class org.opensaml.core.testing.XMLObjectProviderBaseTestCase
initXMLObjectProviderTestingSupprt, testAttributeIDnessMarshall, testSingleElementUnknownAttributesMarshall, testSingleElementUnknownAttributesUnmarshall
-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
expectedForceAuthn
private XSBooleanValue expectedForceAuthn
Expected ForceAuthn attribute
-
expectedIsPassive
private XSBooleanValue expectedIsPassive
Expected IsPassive attribute
-
expectedProtocolBinding
private String expectedProtocolBinding
Expected ProtocolBinding attribute
-
expectedAssertionConsumerServiceIndex
private Integer expectedAssertionConsumerServiceIndex
Expected AssertionConsumerServiceIndex attribute
-
expectedAssertionConsumerServiceURL
private String expectedAssertionConsumerServiceURL
Expected AssertionConsumerServiceURL attribute
-
expectedAttributeConsumingServiceIndex
private Integer expectedAttributeConsumingServiceIndex
Expected AttributeConsumingServiceIndex attribute
-
expectedProviderName
private String expectedProviderName
Expected ProviderName attribute
-
-
Method Detail
-
setUp
@BeforeMethod protected void setUp() throws Exception- Overrides:
setUpin classRequestTestBase- Throws:
Exception
-
testSingleElementMarshall
public void testSingleElementMarshall()
- Specified by:
testSingleElementMarshallin classRequestTestBase
-
testAttributeIDnessMarshall
public void testAttributeIDnessMarshall() throws MarshallingException, XMLParserExceptionTest marshalling of attribute IDness.
-
testSingleElementOptionalAttributesMarshall
public void testSingleElementOptionalAttributesMarshall()
- Overrides:
testSingleElementOptionalAttributesMarshallin classXMLObjectProviderBaseTestCase
-
testChildElementsMarshall
public void testChildElementsMarshall()
- Overrides:
testChildElementsMarshallin classXMLObjectProviderBaseTestCase
-
testSingleElementUnmarshall
public void testSingleElementUnmarshall()
- Specified by:
testSingleElementUnmarshallin classRequestTestBase
-
testSingleElementOptionalAttributesUnmarshall
public void testSingleElementOptionalAttributesUnmarshall()
- Overrides:
testSingleElementOptionalAttributesUnmarshallin classXMLObjectProviderBaseTestCase
-
testChildElementsUnmarshall
public void testChildElementsUnmarshall()
- Overrides:
testChildElementsUnmarshallin classXMLObjectProviderBaseTestCase
-
testXSBooleanAttributes
public void testXSBooleanAttributes()
Test the proper behavior of the XSBooleanValue attributes.
-
testBadSAMLVersion
public void testBadSAMLVersion() throws XMLParserException, UnmarshallingException
-
-