Class AddProxyRestrictionToAssertionsTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.saml.saml2.profile.impl.AddProxyRestrictionToAssertionsTest
-
public class AddProxyRestrictionToAssertionsTest extends OpenSAMLInitBaseTestCase
AddProxyRestrictionToAssertionsunit test.
-
-
Constructor Summary
Constructors Constructor Description AddProxyRestrictionToAssertionsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestAudiencesOnly()Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response with no count.voidtestCountOnly()Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response with no audiences.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.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.voidtestZeroCount()Test that the condition is properly added if there is a single assertion, without a Conditions element, in the response with a count of zero.-
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 AddProxyRestrictionToAssertions action
-
-
Method Detail
-
setUp
@BeforeMethod public void setUp()
-
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
-
testZeroCount
public void testZeroCount() throws ComponentInitializationExceptionTest that the condition is properly added if there is a single assertion, without a Conditions element, in the response with a count of zero.- Throws:
ComponentInitializationException- ...
-
testCountOnly
public void testCountOnly() throws ComponentInitializationExceptionTest that the condition is properly added if there is a single assertion, without a Conditions element, in the response with no audiences.- Throws:
ComponentInitializationException- ...
-
testAudiencesOnly
public void testAudiencesOnly() throws ComponentInitializationExceptionTest that the condition is properly added if there is a single assertion, without a Conditions element, in the response with no count.- Throws:
ComponentInitializationException- ...
-
testSingleAssertion
public void testSingleAssertion() throws ComponentInitializationExceptionTest that the condition is properly added if there is a single assertion, without a Conditions element, in the response.- Throws:
ComponentInitializationException- ...
-
testSingleAssertionWithExistingCondition
public void testSingleAssertionWithExistingCondition() throws ComponentInitializationExceptionTest that the condition is properly added if there is a single assertion, with a Conditions element, in the response.- Throws:
ComponentInitializationException- ...
-
testMultipleAssertion
public void testMultipleAssertion() throws ComponentInitializationExceptionTest that the condition is properly added if there are multiple assertions in the response.- Throws:
ComponentInitializationException- ...
-
-