From: <ed...@bo...> - 2003-08-23 11:51:58
|
edwin 03/08/23 07:19:04 Modified: openpgp/src/cryptix/openpgp/test/packet PGPCompressedDataPacketTest.java Log: Formatting. Revision Changes Path 1.6 +9 -6 projects/openpgp/src/cryptix/openpgp/test/packet/PGPCompressedDataPacketTest.java Index: PGPCompressedDataPacketTest.java =================================================================== RCS file: /home/cryptix-cvs/cvsroot/projects/openpgp/src/cryptix/openpgp/test/packet/PGPCompressedDataPacketTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- PGPCompressedDataPacketTest.java 30 Jan 2003 13:16:32 -0000 1.5 +++ PGPCompressedDataPacketTest.java 23 Aug 2003 11:19:03 -0000 1.6 @@ -1,4 +1,4 @@ -/* $Id: PGPCompressedDataPacketTest.java,v 1.5 2003/01/30 13:16:32 edwin Exp $ +/* $Id: PGPCompressedDataPacketTest.java,v 1.6 2003/08/23 11:19:03 edwin Exp $ * * Copyright (C) 1999-2002 The Cryptix Foundation Limited. * All rights reserved. @@ -36,8 +36,8 @@ * PGPCompressedDataPacket extends cryptix.openpgp.packet.PGPContainerPacket <br> * * @author Erwin van der Koogh er...@cr... - Cryptix Foundation - * @date $Date: 2003/01/30 13:16:32 $ - * @version $Revision: 1.5 $ + * @date $Date: 2003/08/23 11:19:03 $ + * @version $Revision: 1.6 $ * * @see cryptix.openpgp.packet.PGPCompressedDataPacket */ @@ -122,7 +122,8 @@ p.setAlgorithmID(ints[i]); setUpPacketAndMemory(p); ByteArrayOutputStream buf = new ByteArrayOutputStream(); - PGPPacketDataOutputStream pout = new PGPPacketDataOutputStream(buf, COMPRESSED_DATA_PACKET_ID); + PGPPacketDataOutputStream pout = new PGPPacketDataOutputStream(buf, + COMPRESSED_DATA_PACKET_ID); p.encodeBody(pout); pout.close(); // This step is essential @@ -134,8 +135,10 @@ assertTrue(raw.length > 0); ByteArrayInputStream in = new ByteArrayInputStream(raw); - PGPPacket p2 = PGPPacketFactory.getDefaultInstance().readPacket(in, PGPAlgorithmFactory.getDefaultInstance()); - assertTrue("Factory returned wrong kind of packet", p2 instanceof PGPCompressedDataPacket); + PGPPacket p2 = PGPPacketFactory.getDefaultInstance().readPacket(in, + PGPAlgorithmFactory.getDefaultInstance()); + assertTrue("Factory returned wrong kind of packet", + p2 instanceof PGPCompressedDataPacket); assertTrue(memory.size() > 0); // the factory should have called decode for us... |