当前位置: 首页>>代码示例>>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;未经允许,请勿转载。