本文整理汇总了Java中org.joda.time.Duration.ZERO属性的典型用法代码示例。如果您正苦于以下问题:Java Duration.ZERO属性的具体用法?Java Duration.ZERO怎么用?Java Duration.ZERO使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.joda.time.Duration
的用法示例。
在下文中一共展示了Duration.ZERO属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
@Before
public void setUp() throws Exception {
validator = new EidasAttributeQueryValidator(
verifyMetadataResolver,
countryMetadataResolver,
verifyCertificateValidator,
countryCertificateValidator,
certificateExtractor,
x509CertificateFactory,
new DateTimeComparator(Duration.ZERO),
assertionDecrypter,
HUB_CONNECTOR_ENTITY_ID);
when(verifyMetadataResolver.resolveSingle(any(CriteriaSet.class))).thenReturn(entityDescriptor);
when(countryMetadataResolver.resolveSingle(any(CriteriaSet.class))).thenReturn((entityDescriptor));
when(certificateExtractor.extractHubSigningCertificates(entityDescriptor))
.thenReturn(Arrays.asList(new Certificate(HUB_ENTITY_ID, TestCertificateStrings.HUB_TEST_PUBLIC_SIGNING_CERT, Certificate.KeyUse.Signing)));
when(certificateExtractor.extractIdpSigningCertificates(entityDescriptor))
.thenReturn(Arrays.asList(new Certificate(TEST_ENTITY_ID, TestCertificateStrings.TEST_PUBLIC_CERT, Certificate.KeyUse.Signing)));
}
开发者ID:alphagov,项目名称:verify-matching-service-adapter,代码行数:20,代码来源:EidasAttributeQueryValidatorTest.java
示例2: reset
@Override
public void reset() {
currentRetry = 0;
currentCumulativeBackoff = Duration.ZERO;
}
示例3: retry
/**
* Creates a callable that retries the specified task up to the default number of attempts, with
* no delay between attempts and a noop exception handler.
*/
public static <V, X extends Exception> RetryCallable<V, X> retry(
CheckedCallable<? extends V, ? extends X> task) {
return new RetryCallable<>(
task, DEFAULT_MAX_ATTEMPTS, Duration.ZERO, false, ExceptionHandler.NOOP);
}
示例4: setup
@Before
public void setup() {
validator = new SubjectConfirmationDataValidator<>(identity(), new DateTimeComparator(Duration.ZERO));
}
开发者ID:alphagov,项目名称:verify-matching-service-adapter,代码行数:4,代码来源:SubjectConfirmationDataValidatorTest.java
示例5: setup
@Before
public void setup() {
validator = new SubjectConfirmationValidator<>(identity(), new DateTimeComparator(Duration.ZERO));
}
开发者ID:alphagov,项目名称:verify-matching-service-adapter,代码行数:4,代码来源:SubjectConfirmationValidatorTest.java
示例6: setUp
@Before
public void setUp() {
subjectValidator = new SubjectValidator(identity(), new DateTimeComparator(Duration.ZERO));
}
示例7: setup
@Before
public void setup() {
IdaSamlBootstrap.bootstrap();
validator = new AuthnStatementValidator(identity(), new DateTimeComparator(Duration.ZERO));
}