@Test public void testVerifyExtendedCalendarChainHashDoesNotMatchWithInitialSignature_Ok() throws Exception { Mockito.when(mockedVerificationContext.getExtendedCalendarHashChain(Mockito.any(Date.class))).thenReturn(TestUtil.loadSignature(EXTENDED_SIGNATURE_2014_06_02).getCalendarHashChain()); RuleResult result = rule.verify(mockedVerificationContext); Assert.assertEquals(result.getResultCode(), VerificationResultCode.FAIL); Assert.assertEquals(result.getErrorCode(), VerificationErrorCode.CAL_01); }
public VerificationErrorCode getErrorCode() { return VerificationErrorCode.CAL_01; }
ExtendedSignatureCalendarChainRootHashRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.CAL_01; } }
ExtendedSignatureCalendarChainRootHashRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.CAL_01; }  }
ExtendedSignatureCalendarChainRootHashRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.CAL_01; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode(); }
ExtendedSignatureCalendarChainRootHashRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.CAL_01; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }