@Test public void testVerifyExtendedCalendarChainInputHashMatchesWithInitialSignature_Ok() throws Exception { Mockito.when(mockedVerificationContext.getExtendedCalendarHashChain(Mockito.any(Date.class))).thenReturn(TestUtil.loadSignature(EXTENDED_SIGNATURE_2017_03_14).getCalendarHashChain()); RuleResult result = rule.verify(mockedVerificationContext); Assert.assertEquals(result.getResultCode(), VerificationResultCode.OK); Assert.assertNull(result.getErrorCode()); }
@Override VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_03; }
PublicationsFileExtendedSignatureInputHashRule extends BaseRule { @Override VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_03; } }
PublicationsFileExtendedSignatureInputHashRule extends BaseRule { @Override VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_03; }  }
PublicationsFileExtendedSignatureInputHashRule extends BaseRule { @Override VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_03; }   }
PublicationsFileExtendedSignatureInputHashRule extends BaseRule { @Override VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_03; }    }