cryptix.test

Class 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

Field Summary
static booleanDEBUG
static String[]inParams
static String[]outParams
static StringtestData_1
static StringtestData_2
static char[]testData_3
static StringtFile_1
static StringtFile_2
static StringtFile_3
static StringtmpArch
static StringtmpDirS_in
static StringtmpDirS_out
Method Summary
protected voidengineTest()
Test that is run by distribution to make sure everything is OK!
StringlocalReader(File toRead)
voidlocalWriter(File toWrite, Object contents)
static voidmain(String[] argv)

Field Detail

DEBUG

public static boolean DEBUG

inParams

public static final String[] inParams

outParams

public static final String[] outParams

testData_1

public static final String testData_1

testData_2

public static final String testData_2

testData_3

public static final char[] testData_3

tFile_1

public static final String tFile_1

tFile_2

public static final String tFile_2

tFile_3

public static final String tFile_3

tmpArch

public static final String tmpArch

tmpDirS_in

public static final String tmpDirS_in

tmpDirS_out

public static final String tmpDirS_out

Method Detail

engineTest

protected void 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.

localReader

public String localReader(File toRead)

Parameters: toRead File to be read from

Returns: Contents of a file converted into String

localWriter

public void localWriter(File toWrite, Object contents)

Parameters: toWrite File to be written contents String or char[] contents to be written into file

main

public static void main(String[] argv)