本文整理匯總了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));
}