public class AddAudienceRestrictionToAssertionsTest
extends org.opensaml.core.OpenSAMLInitBaseTestCase
AddAudienceRestrictionToAssertions unit test.| Modifier and Type | Field and Description |
|---|---|
private org.opensaml.saml.common.profile.impl.AddAudienceRestrictionToAssertions |
action |
private static String |
AUDIENCE1 |
private static String |
AUDIENCE2 |
| Constructor and Description |
|---|
AddAudienceRestrictionToAssertionsTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testMultipleAssertion()
Test that the condition is properly added if there are multiple assertions in the response.
|
void |
testNoAssertion()
Test that action behaves properly if there is no assertion in the response.
|
void |
testNoResponse()
Test that action errors out properly if there is no response.
|
void |
testSAML2Assertion()
Test that the condition is properly added if there is a single assertion, without a Conditions element, in the
response.
|
void |
testSingleAssertion()
Test that the condition is properly added if there is a single assertion, without a Conditions element, in the
response.
|
void |
testSingleAssertionWithExistingAudienceCondition()
Test that an addition condition is not added if an assertion already contains one.
|
void |
testSingleAssertionWithExistingCondition()
Test that the condition is properly added if there is a single assertion, with a Conditions element, in the
response.
|
private static final String AUDIENCE1
private static final String AUDIENCE2
private org.opensaml.saml.common.profile.impl.AddAudienceRestrictionToAssertions action
public AddAudienceRestrictionToAssertionsTest()
public void setUp()
throws ComponentInitializationException
ComponentInitializationExceptionpublic void testNoResponse()
throws Exception
Exceptionpublic void testNoAssertion()
throws Exception
Exceptionpublic void testSingleAssertion()
throws Exception
Exceptionpublic void testSingleAssertionWithExistingCondition()
throws Exception
Exceptionpublic void testSingleAssertionWithExistingAudienceCondition()
throws Exception
Exceptionpublic void testMultipleAssertion()
throws Exception
ExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.