public class DateAttributePredicateTest extends Object
DateAttributePredicate.| Modifier and Type | Field and Description |
|---|---|
private DateTimeFormatter |
formatter |
| Constructor and Description |
|---|
DateAttributePredicateTest() |
| Modifier and Type | Method and Description |
|---|---|
private org.opensaml.profile.context.ProfileRequestContext |
createProfileRequestContext(String name,
String[] values) |
private String[] |
dateStrings(Duration... offsets)
Produces an array of date strings that are offsets from current system time.
|
private net.shibboleth.idp.profile.logic.DateAttributePredicate |
newPredicate(String attribute,
Duration offset) |
Object[][] |
provideTestData() |
void |
testApply(net.shibboleth.idp.profile.logic.DateAttributePredicate predicate,
String attribute,
String[] values,
boolean expected) |
private final DateTimeFormatter formatter
public Object[][] provideTestData()
public void testApply(net.shibboleth.idp.profile.logic.DateAttributePredicate predicate,
String attribute,
String[] values,
boolean expected)
throws Exception
Exceptionprivate org.opensaml.profile.context.ProfileRequestContext createProfileRequestContext(String name, String[] values)
private String[] dateStrings(Duration... offsets)
offsets - One or more durations that are added to the current system time.Copyright © 1999–2016 Shibboleth Consortium. All rights reserved.