Class AddDoNotCacheConditionToAssertionsTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.saml1.profile.impl.AddDoNotCacheConditionToAssertionsTest
-
public class AddDoNotCacheConditionToAssertionsTest extends OpenSAMLInitBaseTestCase
AddDoNotCacheConditionToAssertionsunit test.
-
-
Constructor Summary
Constructors Constructor Description AddDoNotCacheConditionToAssertionsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestMultipleAssertion()Test that the condition is properly added if there are multiple assertions in the response.voidtestNoAssertion()Test that action errors out properly if there is no assertion in the response.voidtestNoResponse()Test that action errors out properly if there is no response.voidtestSingleAssertion()Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response.voidtestSingleAssertionWithExistingCondition()Test that the condition is properly added if there is a single assertion, with a Conditions element, in the response.voidtestSingleAssertionWithExistingDoNotCacheCondition()Test that an addition DoNotCache is not added if an assertion already contains one.-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Method Detail
-
testNoResponse
public void testNoResponse() throws ExceptionTest that action errors out properly if there is no response.- Throws:
Exception- if something goes wrong
-
testNoAssertion
public void testNoAssertion() throws ExceptionTest that action errors out properly if there is no assertion in the response.- Throws:
Exception- if something goes wrong
-
testSingleAssertion
public void testSingleAssertion() throws ExceptionTest that the condition is properly added if there is a single assertion, without a Conditions element, in the response.- Throws:
Exception- if something goes wrong
-
testSingleAssertionWithExistingCondition
public void testSingleAssertionWithExistingCondition() throws ExceptionTest that the condition is properly added if there is a single assertion, with a Conditions element, in the response.- Throws:
Exception- if something goes wrong
-
testSingleAssertionWithExistingDoNotCacheCondition
public void testSingleAssertionWithExistingDoNotCacheCondition() throws ExceptionTest that an addition DoNotCache is not added if an assertion already contains one.- Throws:
Exception- if something goes wrong
-
-