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