Class AddGeneratedKeyToAssertionsTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.saml2.profile.impl.AddGeneratedKeyToAssertionsTest
-
public class AddGeneratedKeyToAssertionsTest extends OpenSAMLInitBaseTestCase
AddGeneratedKeyToAssertionsunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private AddGeneratedKeyToAssertionsactionprivate ECPContextecp
-
Constructor Summary
Constructors Constructor Description AddGeneratedKeyToAssertionsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestMultipleAssertion()Test that the advice 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.voidtestNoBindings()Test that action does nothing if there's no key.voidtestNoResponse()Test that action errors out properly if there is no response.voidtestSingleAssertion()Test that the advice is properly added if there is a single assertion, without an Advice element, in the response.voidtestSingleAssertionWithExistingCondition()Test that the advice is properly added if there is a single assertion, with an Advice element, in the response.-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
ecp
private ECPContext ecp
-
action
private AddGeneratedKeyToAssertions 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.
-
testNoBindings
public void testNoBindings()
Test that action does nothing if there's no key.
-
testNoAssertion
public void testNoAssertion()
Test that action errors out properly if there is no assertion in the response.
-
testSingleAssertion
public void testSingleAssertion() throws EncodingExceptionTest that the advice is properly added if there is a single assertion, without an Advice element, in the response.- Throws:
EncodingException- if the ecp session key can not be base64 encoded.
-
testSingleAssertionWithExistingCondition
public void testSingleAssertionWithExistingCondition() throws EncodingExceptionTest that the advice is properly added if there is a single assertion, with an Advice element, in the response.- Throws:
EncodingException- if the ecp session key can not be base64 encoded.
-
testMultipleAssertion
public void testMultipleAssertion() throws EncodingExceptionTest that the advice is properly added if there are multiple assertions in the response.- Throws:
EncodingException- if the ecp session key can not be base64 encoded.
-
-