當前位置: 首頁>>代碼示例>>Java>>正文


Java Duration.ZERO屬性代碼示例

本文整理匯總了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;
}
 
開發者ID:spotify,項目名稱:hype,代碼行數:5,代碼來源:FluentBackoff.java

示例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);
}
 
開發者ID:google,項目名稱:ios-device-control,代碼行數:9,代碼來源:RetryCallable.java

示例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));
}
 
開發者ID:alphagov,項目名稱:verify-matching-service-adapter,代碼行數:4,代碼來源:SubjectValidatorTest.java

示例7: setup

@Before
public void setup() {
    IdaSamlBootstrap.bootstrap();
    validator = new AuthnStatementValidator(identity(), new DateTimeComparator(Duration.ZERO));
}
 
開發者ID:alphagov,項目名稱:verify-matching-service-adapter,代碼行數:5,代碼來源:AuthnStatementValidatorTest.java


注:本文中的org.joda.time.Duration.ZERO屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。