@Test public void testPublicationFileContainPublicationWithDifferentHash() throws Exception { PublicationsFile file = TestUtil.loadPublicationsFile(PUBLICATIONS_FILE); mockPublication(file.getLatestPublication().getPublicationTime()); RuleResult result = rule.verify(context); Assert.assertEquals(result.getResultCode(), VerificationResultCode.FAIL); Assert.assertEquals(result.getErrorCode(), VerificationErrorCode.PUB_05); }
public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_05; }
PublicationsFileContainsSignaturePublicationRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_05; } }
PublicationsFileContainsSignaturePublicationRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_05; }  }
PublicationsFileContainsSignaturePublicationRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_05; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode(); }
PublicationsFileContainsSignaturePublicationRule extends BaseRule { public VerificationErrorCode getErrorCode() { return VerificationErrorCode.PUB_05; }  VerificationResultCode verifySignature(VerificationContext context); VerificationErrorCode getErrorCode();  }