Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.openpgp.test.packet
Class PGPCompressedDataPacketTest  view PGPCompressedDataPacketTest download PGPCompressedDataPacketTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bycryptix.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 $

Field Summary
private static byte COMPRESSED_DATA_PACKET_ID
           
private static java.lang.String fs
           
private  java.util.Vector memory
           
private  cryptix.openpgp.packet.PGPCompressedDataPacket packet
           
private  java.io.File testdir
           
private static byte USERID_PACKET_ID
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
PGPCompressedDataPacketTest(java.lang.String name)
          Constructor (needed for JTest)
 
Method Summary
static void main(java.lang.String[] args)
          Main method needed to make a self runnable class
private  cryptix.openpgp.packet.PGPPacket makePacket(java.lang.String str)
           
protected  void setUp()
          Used by JUnit (called before each test method)
private  void setUpPacketAndMemory(cryptix.openpgp.packet.PGPCompressedDataPacket packet)
           
protected  void tearDown()
          Used by JUnit (called after each test method)
 void testDecodeBody()
          Test method: void decodeBody(PGPPacketDataInputStream, PGPAlgorithmFactory) decodeBody throws java.io.IOException decodeBody throws cryptix.openpgp.PGPFatalDataFormatException decodeBody throws cryptix.openpgp.PGPDataFormatException
 void testEncodeBody()
          Test method: void encodeBody(PGPPacketDataOutputStream) encodeBody throws java.io.IOException
 void testSetAlgorithmID()
          Test method: void setAlgorithmID(int)
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

PGPCompressedDataPacketTest

public PGPCompressedDataPacketTest(java.lang.String name)
Constructor (needed for JTest)

Method Detail

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