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 boolean
DEBUG
static String[]
inParams
static String[]
outParams
static String
tFile_1
static String
tFile_2
static String
tFile_3
static String
testData_1
static String
testData_2
static char[]
testData_3
static String
tmpArch
static String
tmpDirS_in
static String
tmpDirS_out

Fields inherited from class cryptix.util.test.BaseTest

out, status

Method Summary

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.
String
localReader(File toRead)
void
localWriter(File toWrite, Object contents)
static void
main(argv[] )

Methods inherited from class cryptix.util.test.BaseTest

commandline, commandline, describeOptions, describeUsage, engineTest, error, error, error, fail, getErrors, getExpectedPasses, getFailures, getName, getPasses, getSkipped, init, isGuiEnabled, isOverallPass, isVerbose, parseOption, parseOptions, pass, passIf, report, setExpectedPasses, setGuiEnabled, setName, setOutput, setVerbose, skip, test, waitForExit

Field Details

DEBUG

public static boolean DEBUG

inParams

public static final String[] inParams

outParams

public static final String[] outParams

tFile_1

public static final String tFile_1

tFile_2

public static final String tFile_2

tFile_3

public static final String tFile_3

testData_1

public static final String testData_1

testData_2

public static final String testData_2

testData_3

public static final char[] testData_3

tmpArch

public static final String tmpArch

tmpDirS_in

public static final String tmpDirS_in

tmpDirS_out

public static final String tmpDirS_out

Method Details

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 interface BaseTest

localReader

public String localReader(File toRead)
            throws IOException
Parameters:
toRead - File to be read from
Returns:
Contents of a file converted into String

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

main

public static void main(argv[] )