java.lang.Object
junit.framework.Assert
junit.framework.TestCase
cryptix.openpgp.test.packet.PGPCompressedDataPacketTest
- All Implemented Interfaces:
- junit.framework.Test
- public class PGPCompressedDataPacketTest
- extends junit.framework.TestCase
PGPCompressedDataPacketTest (Copyright 2001 Cryptix Foundation)
This class performs unit tests on cryptix.openpgp.packet.PGPCompressedDataPacket
Explanation about the tested class and its responsibilities
Relations:
PGPCompressedDataPacket extends cryptix.openpgp.packet.PGPContainerPacket
- Version:
- $Revision: 1.2 $
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
COMPRESSED_DATA_PACKET_ID
private static final byte COMPRESSED_DATA_PACKET_ID
- See Also:
- Constant Field Values
USERID_PACKET_ID
private static final byte USERID_PACKET_ID
- See Also:
- Constant Field Values
fs
private static final java.lang.String fs
packet
private cryptix.openpgp.packet.PGPCompressedDataPacket packet
memory
private java.util.Vector memory
testdir
private java.io.File testdir
PGPCompressedDataPacketTest
public PGPCompressedDataPacketTest(java.lang.String name)
- Constructor (needed for JTest)
setUp
protected void setUp()
- Used by JUnit (called before each test method)
tearDown
protected void tearDown()
- Used by JUnit (called after each test method)
testSetAlgorithmID
public void testSetAlgorithmID()
- Test method: void setAlgorithmID(int)
testDecodeBody
public void testDecodeBody()
throws java.lang.Exception
- Test method: void decodeBody(PGPPacketDataInputStream, PGPAlgorithmFactory)
decodeBody throws java.io.IOException
decodeBody throws cryptix.openpgp.PGPFatalDataFormatException
decodeBody throws cryptix.openpgp.PGPDataFormatException
testEncodeBody
public void testEncodeBody()
throws java.io.IOException
- Test method: void encodeBody(PGPPacketDataOutputStream)
encodeBody throws java.io.IOException
setUpPacketAndMemory
private void setUpPacketAndMemory(cryptix.openpgp.packet.PGPCompressedDataPacket packet)
makePacket
private cryptix.openpgp.packet.PGPPacket makePacket(java.lang.String str)
main
public static void main(java.lang.String[] args)
- Main method needed to make a self runnable class