Current master fails to compile tests: TestSMIMESignEncrypt.java
Uri Blumenthal <[email protected]> Mon, 5 Nov 2018 15:57:46 +0000
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <[email protected]> |
The following patch is required to get the tests compile:
diff --git a/pkix/src/test/java/org/bouncycastle/mime/test/TestSMIMESignEncrypt.java b/pkix/src/test/java/org/bouncycastle/mime/test/TestSMIMESignEncrypt.java
index 479ee8e96..97d094510 100755
--- a/pkix/src/test/java/org/bouncycastle/mime/test/TestSMIMESignEncrypt.java
+++ b/pkix/src/test/java/org/bouncycastle/mime/test/TestSMIMESignEncrypt.java
@@ -17,6 +17,7 @@
import org.bouncycastle.cert.jcajce.JcaX509CertificateHolder;
import org.bouncycastle.cms.CMSAlgorithm;
import org.bouncycastle.cms.CMSException;
+import org.bouncycastle.cms.CMSTypedStream;
import org.bouncycastle.cms.OriginatorInformation;
import org.bouncycastle.cms.RecipientInformation;
import org.bouncycastle.cms.RecipientInformationStore;
@@ -46,7 +47,8 @@
import org.bouncycastle.util.encoders.Base64;
import org.bouncycastle.util.io.Streams;
-public class TestSMIMESignEncrypt_commented
+//public class TestSMIMESignEncrypt_commented
+public class TestSMIMESignEncrypt
extends TestCase
{
private static final String BC = BouncyCastleProvider.PROVIDER_NAME;
It still isn’t enough to pass .i18n tests:
Can't find entry arguments.text in resource file org.bouncycastle.i18n.test.I18nTestMessages.
org.bouncycastle.i18n.MissingEntryException: Can't find entry arguments.text in resource file org.bouncycastle.i18n.test.I18nTestMessages.
at org.bouncycastle.i18n.LocalizedMessage.getEntry(LocalizedMessage.java:169)
at org.bouncycastle.i18n.test.LocalizedMessageTest.testLocalizedArgs(LocalizedMessageTest.java:150)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
Can't find entry hello.text in resource file org.bouncycastle.i18n.test.I18nTestMessages.
org.bouncycastle.i18n.MissingEntryException: Can't find entry hello.text in resource file org.bouncycastle.i18n.test.I18nTestMessages.
at org.bouncycastle.i18n.LocalizedMessage.getEntry(LocalizedMessage.java:169)
at org.bouncycastle.i18n.test.LocalizedMessageTest.testGetEntry(LocalizedMessageTest.java:45)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
smime.p7s
(application/pkcs7-signature, 2.4 KB) - not displayed