de.h2b.taglets
Class CrossRefTableTest

java.lang.Object
  extended by de.h2b.taglets.CrossRefTableTest

@ClassLabel(copyright="Copyright (C) 2008 Hans-Hermann Bode",
            ident="$Id: CrossRefTableTest.java,v 1.3 2008/11/29 01:34:33 h2b Exp $")
public class CrossRefTableTest
extends java.lang.Object

A test class for CrossRefTable.

Version:
$Revision: 1.3 $, $Date: 2008/11/29 01:34:33 $
Author:
h2b
See Also:
CrossRefTable

Field Summary
protected static java.lang.String testFilePath
          Pathname of test file.
 
Constructor Summary
CrossRefTableTest()
           
 
Method Summary
 void setUp()
          Sets up the test fixture.
 void tearDown()
          Tears down the test fixture.
 void testGetIndex1()
          Test if correct index is returned for existing keys.
 void testGetIndex2()
          Test if new key is added with correct index.
 void testGetReference1()
          Test if correct index is returned for existing keys.
 void testGetReference2()
          Test if new key is returned by itself.
 void testSave()
          Test if table is stored in file correctly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testFilePath

protected static final java.lang.String testFilePath
Pathname of test file.

See Also:
Constant Field Values
Constructor Detail

CrossRefTableTest

public CrossRefTableTest()
Method Detail

setUp

public void setUp()
Sets up the test fixture. (Called before every test-case method.)


tearDown

public void tearDown()
Tears down the test fixture. (Called after every test-case method.)


testGetIndex1

public void testGetIndex1()
Test if correct index is returned for existing keys.

See Also:
CrossRefTable.getIndex(java.lang.String)

testGetIndex2

public void testGetIndex2()
Test if new key is added with correct index.

See Also:
CrossRefTable.getIndex(java.lang.String)

testGetReference1

public void testGetReference1()
Test if correct index is returned for existing keys.

See Also:
CrossRefTable.getReference(java.lang.String)

testGetReference2

public void testGetReference2()
Test if new key is returned by itself.

See Also:
CrossRefTable.getReference(java.lang.String)

testSave

public void testSave()
Test if table is stored in file correctly.

See Also:
CrossRefTable.save()


Copyright © 2008 Hans-Hermann Bode, Berlin, Germany. All Rights Reserved.