All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.test.TestScar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----cryptix.util.test.BaseTest
                                           |
                                           +----cryptix.test.TestScar

public class TestScar
extends BaseTest
This class tests the cryptix.tools.Scar class.
Will fail when unable to write into testing directory.

Copyright © 1997, 1998 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1 $

Author:
Zoran Rajic

Variable Index

 o DEBUG
 o inParams
 o outParams
 o testData_1
 o testData_2
 o testData_3
 o tFile_1
 o tFile_2
 o tFile_3
 o tmpArch
 o tmpDirS_in
 o tmpDirS_out

Constructor Index

 o TestScar()

Method Index

 o engineTest()
Test that is run by distribution to make sure everything is OK! It writes some test files, makes Scar archive from them, unarchives files and compares results.
 o localReader(File)
 o localWriter(File, Object)
 o main(String[])

Variables

 o DEBUG
 public static boolean DEBUG
 o tmpArch
 public static final String tmpArch
 o tmpDirS_in
 public static final String tmpDirS_in
 o tmpDirS_out
 public static final String tmpDirS_out
 o tFile_1
 public static final String tFile_1
 o tFile_2
 public static final String tFile_2
 o tFile_3
 public static final String tFile_3
 o testData_1
 public static final String testData_1
 o testData_2
 public static final String testData_2
 o testData_3
 public static final char testData_3[]
 o inParams
 public static final String inParams[]
 o outParams
 public static final String outParams[]

Constructors

 o TestScar
 public TestScar()

Methods

 o localWriter
 public void localWriter(File toWrite,
                         Object contents) throws IOException
Parameters:
toWrite - File to be written
contents - String or char[] contents to be written into file
 o localReader
 public String localReader(File toRead) throws IOException
Parameters:
toRead - File to be read from
Returns:
Contents of a file converted into String
 o engineTest
 protected void engineTest() throws Exception
Test that is run by distribution to make sure everything is OK! It writes some test files, makes Scar archive from them, unarchives files and compares results.

Overrides:
engineTest in class BaseTest
 o main
 public static void main(String argv[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index