com.conradroche.matra.test.data
Class DataTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.conradroche.matra.test.data.DataTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ParseableDataTest

public class DataTest
extends junit.framework.TestCase

JUnit test case for the Data class.

Author:
Conrad Roche

Constructor Summary
DataTest(java.lang.String arg0)
          Constructor for DataTest.
 
Method Summary
static junit.framework.Test suite()
          CR: JavaDoc: Add javadoc for DataTest::suite
 void testCheckNextChar()
          Test the Data::checkNextChar(char) method.
 void testDataData()
          Test the Data::Data(Data) copy constructor.
 void testEmptyData()
          Check the behaviour of Data with an empty String.
 void testEndOfData()
          Test the Data::endOfData() method.
 void testGetColumn()
          Test the Data::getColumn() method.
 void testGetCurrentPosition()
          Test the Data::getCurrentPosition() method.
 void testGetNextChar()
          Test the Data::getNextChar() method.
 void testGetPrevChar()
          Test the Data::getPrevChar() method.
 void testGetRemaining()
          Test the Data::getRemaining() method.
 void testGetRow()
          Test the Data::getRow() method.
 void testLength()
          Test the Data::length() method.
 void testLookNextChar()
          Test the Data::lookNextChar() method.
 void testNullData()
          Check the behaviour of Data with null String.
 void testPeekAhead()
          Test the Data::peekAhead(int) method.
 void testReset()
          Test the Data::reset() method.
 void testRewind()
          Test the Data::rewind() method.
 void testToString()
          Test the Data::toString() method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataTest

public DataTest(java.lang.String arg0)
Constructor for DataTest.
Parameters:
arg0 -  
Method Detail

suite

public static junit.framework.Test suite()
CR: JavaDoc: Add javadoc for DataTest::suite
Returns:
 

testLength

public void testLength()
Test the Data::length() method.

testCheckNextChar

public void testCheckNextChar()
Test the Data::checkNextChar(char) method.

testEndOfData

public void testEndOfData()
Test the Data::endOfData() method.

testGetNextChar

public void testGetNextChar()
Test the Data::getNextChar() method.

testGetPrevChar

public void testGetPrevChar()
Test the Data::getPrevChar() method.

testLookNextChar

public void testLookNextChar()
Test the Data::lookNextChar() method.

testPeekAhead

public void testPeekAhead()
Test the Data::peekAhead(int) method.

testGetRemaining

public void testGetRemaining()
Test the Data::getRemaining() method.

testToString

public void testToString()
Test the Data::toString() method.

testReset

public void testReset()
Test the Data::reset() method.

testRewind

public void testRewind()
Test the Data::rewind() method.

testGetRow

public void testGetRow()
Test the Data::getRow() method.

testGetColumn

public void testGetColumn()
Test the Data::getColumn() method.

testGetCurrentPosition

public void testGetCurrentPosition()
Test the Data::getCurrentPosition() method.

testDataData

public void testDataData()
Test the Data::Data(Data) copy constructor.

testNullData

public void testNullData()
Check the behaviour of Data with null String.

testEmptyData

public void testEmptyData()
Check the behaviour of Data with an empty String.