Package net.shibboleth.idp.ui.csrf
Class BaseCSRFTokenPredicateTest
java.lang.Object
net.shibboleth.idp.ui.csrf.BaseCSRFTest
net.shibboleth.idp.ui.csrf.BaseCSRFTokenPredicateTest
Base CSRF token predicate tests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classMock concrete implementation of theBaseCSRFTokenPredicate.Nested classes/interfaces inherited from class net.shibboleth.idp.ui.csrf.BaseCSRFTest
BaseCSRFTest.MockView, BaseCSRFTest.MockViewState -
Field Summary
Fields inherited from class net.shibboleth.idp.ui.csrf.BaseCSRFTest
EXCLUDED_VIEWSTATES_FIELDNAME, INCLUDE_ALL_VIEWSTATES_FIELDNAME, INCLUDED_VIEWSTATES_FIELDNAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidTest normal operation of the safeGetBoolean method with a false csrf exclusion attribute.voidTest normal operation of the safeGetBoolean method with a null csrf exclusion attribute.voidTest normal operation of the safeGetBoolean method with a true csrf exclusion attribute.voidTest normal operation of the safeGetBoolean method with a wrongly typed csrf exclusion attribute.
-
Constructor Details
-
BaseCSRFTokenPredicateTest
public BaseCSRFTokenPredicateTest()
-
-
Method Details
-
testSafeGetBooleanAttributeWithNullStateDefinition
public void testSafeGetBooleanAttributeWithNullStateDefinition() -
testSafeGetBooleanAttributeWithNullAttrName
public void testSafeGetBooleanAttributeWithNullAttrName() -
testSafeGetBooleanTrue
public void testSafeGetBooleanTrue()Test normal operation of the safeGetBoolean method with a true csrf exclusion attribute. -
testSafeGetBooleanFalse
public void testSafeGetBooleanFalse()Test normal operation of the safeGetBoolean method with a false csrf exclusion attribute. -
testSafeGetBooleanNullAttributeFalse
public void testSafeGetBooleanNullAttributeFalse()Test normal operation of the safeGetBoolean method with a null csrf exclusion attribute. -
testSafeGetBooleanWrongTypeAttributeFalse
public void testSafeGetBooleanWrongTypeAttributeFalse()Test normal operation of the safeGetBoolean method with a wrongly typed csrf exclusion attribute.
-