edu.sdsc.inca.protocol
Class ProtocolReaderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.sdsc.inca.protocol.ProtocolReaderTest
All Implemented Interfaces:
junit.framework.Test

public class ProtocolReaderTest
extends junit.framework.TestCase

Tests basic functionality of the Protocol Reader.


Constructor Summary
ProtocolReaderTest()
           
 
Method Summary
 void testPeek()
          This tests the ability to peek at the next command.
 void testRead()
          This tests the ability to read a simple command.
 void testReadWithCr()
          This tests reading a Statement that contains a carriage return.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtocolReaderTest

public ProtocolReaderTest()
Method Detail

testPeek

public void testPeek()
              throws java.io.IOException,
                     ProtocolException
This tests the ability to peek at the next command.

Throws:
java.io.IOException
ProtocolException

testRead

public void testRead()
              throws java.io.IOException,
                     ProtocolException
This tests the ability to read a simple command.

Throws:
java.io.IOException
ProtocolException

testReadWithCr

public void testReadWithCr()
                    throws java.io.IOException,
                           ProtocolException
This tests reading a Statement that contains a carriage return.

Throws:
java.io.IOException
ProtocolException