@Test public void testVerifySignatureWithCalendarHashChain_Ok() throws Exception { Mockito.when(mockedContext.getCalendarHashChain()).thenReturn(Mockito.mock(CalendarHashChain.class)); RuleResult result = rule.verify(mockedContext); Assert.assertEquals(result.getResultCode(), VerificationResultCode.NA); Assert.assertEquals(result.getErrorCode(), VerificationErrorCode.GEN_02); }
public VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_02; }
CalendarHashChainDoesNotExistRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_02; } }
CalendarHashChainDoesNotExistRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_02; }  }
CalendarHashChainDoesNotExistRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_02; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode(); }
CalendarHashChainDoesNotExistRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_02; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }