Class AddChannelBindingsToAssertionsTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.saml2.profile.impl.AddChannelBindingsToAssertionsTest
-
public class AddChannelBindingsToAssertionsTest extends OpenSAMLInitBaseTestCase
AddChannelBindingsToAssertionsunit test.
-
-
Field Summary
Fields Modifier and Type Field Description private AddChannelBindingsToAssertionsactionprivate ChannelBindingsContextcbc
-
Constructor Summary
Constructors Constructor Description AddChannelBindingsToAssertionsTest()
-
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 are no bindings.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
-
cbc
private ChannelBindingsContext cbc
-
action
private AddChannelBindingsToAssertions 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 are no bindings.
-
testNoAssertion
public void testNoAssertion()
Test that action errors out properly if there is no assertion in the response.
-
testSingleAssertion
public void testSingleAssertion()
Test that the advice is properly added if there is a single assertion, without an Advice element, in the response.
-
testSingleAssertionWithExistingCondition
public void testSingleAssertionWithExistingCondition()
Test that the advice is properly added if there is a single assertion, with an Advice element, in the response.
-
testMultipleAssertion
public void testMultipleAssertion()
Test that the advice is properly added if there are multiple assertions in the response.
-
-