Try for a more specific failure message on the assert

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1637129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2014-11-06 14:54:02 +00:00
parent 21d90606ab
commit 70177caa04

View File

@ -470,7 +470,7 @@ public class TestSignatureInfo {
si.confirmSignature(); si.confirmSignature();
boolean b = si.verifySignature(); boolean b = si.verifySignature();
assertTrue(b); assertTrue("Signature not correctly calculated for " + ha, b);
} catch (EncryptedDocumentException e) { } catch (EncryptedDocumentException e) {
// see http://apache-poi.1045710.n5.nabble.com/org-apache-poi-poifs-crypt-TestSignatureInfo-failing-on-trunk-on-Java-6-tp5717032.html // see http://apache-poi.1045710.n5.nabble.com/org-apache-poi-poifs-crypt-TestSignatureInfo-failing-on-trunk-on-Java-6-tp5717032.html
Throwable cause = e.getCause(); Throwable cause = e.getCause();