Class AddAudienceRestrictionToAssertionsTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.common.profile.impl.AddAudienceRestrictionToAssertionsTest
-
public class AddAudienceRestrictionToAssertionsTest extends OpenSAMLInitBaseTestCase
AddAudienceRestrictionToAssertionsunit test.
-
-
Constructor Summary
Constructors Constructor Description AddAudienceRestrictionToAssertionsTest()
-
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 behaves 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.voidtestSingleAssertionWithExistingAudienceCondition()Test that an addition condition is not added if an assertion already contains one.voidtestSingleAssertionWithExistingCondition()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
-
AUDIENCE1
private static final String AUDIENCE1
- See Also:
- Constant Field Values
-
AUDIENCE2
private static final String AUDIENCE2
- See Also:
- Constant Field Values
-
action
private AddAudienceRestrictionToAssertions action
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
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 behaves 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
-
testSingleAssertionWithExistingAudienceCondition
public void testSingleAssertionWithExistingAudienceCondition() throws ExceptionTest that an addition condition is not added if an assertion already contains one.- Throws:
Exception- if something goes wrong
-
testMultipleAssertion
public void testMultipleAssertion() throws ExceptionTest that the condition is properly added if there are multiple assertions in the response.- Throws:
Exception- if something goes wrong
-
-