Class AddNotOnOrAfterConditionToAssertionsTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.common.profile.impl.AddNotOnOrAfterConditionToAssertionsTest
-
public class AddNotOnOrAfterConditionToAssertionsTest extends OpenSAMLInitBaseTestCase
AddNotOnOrAfterConditionToAssertionsunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private AddNotOnOrAfterConditionToAssertionsactionprivate ProfileRequestContextprc
-
Constructor Summary
Constructors Constructor Description AddNotOnOrAfterConditionToAssertionsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestMultipleAssertion()Test that the condition is properly added if there are multiple assertions in the response.voidtestNoAssertion()Test that action works properly if there is no assertion in the response.voidtestNoResponse()Test that action errors out properly if there is no response.voidtestSAML2Assertion()Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response.voidtestSingleAssertion()Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response.voidtestSingleAssertionWithExistingConditions()Test that the condition is properly added if there is a single assertion, with a Conditions element, in the response.-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
prc
private ProfileRequestContext prc
-
action
private AddNotOnOrAfterConditionToAssertions action
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
testNoResponse
public void testNoResponse()
Test that action errors out properly if there is no response.
-
testNoAssertion
public void testNoAssertion()
Test that action works properly if there is no assertion in the response.
-
testSingleAssertion
public void testSingleAssertion()
Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response.
-
testSingleAssertionWithExistingConditions
public void testSingleAssertionWithExistingConditions() throws ComponentInitializationExceptionTest that the condition is properly added if there is a single assertion, with a Conditions element, in the response.- Throws:
ComponentInitializationException- ...
-
testMultipleAssertion
public void testMultipleAssertion() throws ComponentInitializationExceptionTest that the condition is properly added if there are multiple assertions in the response.- Throws:
ComponentInitializationException- ...
-
testSAML2Assertion
public void testSAML2Assertion()
Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response.
-
-