@Test public void testSignatureVerificationWithoutDocumentHashReturnsOkStatus_Ok() throws Exception { RuleResult result = rule.verify(build(TestUtil.loadSignature(SIGNATURE_2017_03_14))); Assert.assertNotNull(result); Assert.assertEquals(result.getResultCode(), VerificationResultCode.OK); Assert.assertNull(result.getErrorCode()); }
VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_04; }
DocumentHashAlgorithmVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_04; } }
DocumentHashAlgorithmVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_04; }  }
DocumentHashAlgorithmVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_04; }   }
DocumentHashAlgorithmVerificationRule extends BaseRule { VerificationErrorCode getErrorCode() { return VerificationErrorCode.GEN_04; }    }