You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bo...@apache.org on 2005/12/08 06:02:23 UTC
svn commit: r354983 - in /jakarta/commons/sandbox/openpgp/trunk/src/test:
java/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.java
resources/test-input resources/test-input.txt
Author: bodewig
Date: Wed Dec 7 21:01:59 2005
New Revision: 354983
URL: http://svn.apache.org/viewcvs?rev=354983&view=rev
Log:
test was failing on Unix because signature was created on a Windows box and the file to sign has native line-ends, sign a binary file instead
Added:
jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input (contents, props changed)
- copied, changed from r354843, jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input.txt
Removed:
jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input.txt
Modified:
jakarta/commons/sandbox/openpgp/trunk/src/test/java/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.java
Modified: jakarta/commons/sandbox/openpgp/trunk/src/test/java/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/openpgp/trunk/src/test/java/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.java?rev=354983&r1=354982&r2=354983&view=diff
==============================================================================
--- jakarta/commons/sandbox/openpgp/trunk/src/test/java/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.java (original)
+++ jakarta/commons/sandbox/openpgp/trunk/src/test/java/org/apache/commons/openpgp/BouncyCastleOpenPgpSignerTest.java Wed Dec 7 21:01:59 2005
@@ -53,10 +53,10 @@
throws OpenPgpException, IOException
{
ByteArrayOutputStream signature = new ByteArrayOutputStream();
- signer.detachedSign( getClass().getResourceAsStream( "/test-input.txt" ), signature, keyId, keyRing, false );
+ signer.detachedSign( getClass().getResourceAsStream( "/test-input" ), signature, keyId, keyRing, false );
// TODO: can we get it to verify an ascii armored one?
- SignatureStatus status = verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input.txt" ),
+ SignatureStatus status = verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),
new ByteArrayInputStream( signature.toByteArray() ),
keyRing, false );
assertNotNull( "check we got a status", status );
@@ -67,7 +67,7 @@
throws IOException, OpenPgpException
{
// TODO: can we get it to verify an ascii armored one?
- SignatureStatus status = verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input.txt" ),
+ SignatureStatus status = verifier.verifyDetachedSignature( getClass().getResourceAsStream( "/test-input" ),
getClass().getResourceAsStream(
"/test-signature.bpg" ), keyRing, false );
Copied: jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input (from r354843, jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input.txt)
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input?p2=jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input&p1=jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input.txt&r1=354843&r2=354983&rev=354983&view=diff
==============================================================================
Binary files - no diff available.
Propchange: jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: jakarta/commons/sandbox/openpgp/trunk/src/test/resources/test-input
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org