umich.cac.pbs.test
Class RecordFactoryTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byumich.cac.pbs.test.RecordFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class RecordFactoryTest
extends junit.framework.TestCase

Tests for RecordFactory class.

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/doc/javadoc/umich/cac/pbs/test/RecordFactoryTest.html,v 1.6 2003/10/21 20:33:48 rodmach Exp $
Author:
rmach@umich.edu

Constructor Summary
RecordFactoryTest(java.lang.String testName)
          Constructor
 
Method Summary
static void main(java.lang.String[] args)
          Main - for running stand-alone test
static junit.framework.Test suite()
          Return a new test suite
 void testDeleteParser()
          Test the correct record parser is returned for Delete records
 void testExecutionParser()
          Test the correct record parser is returned for Execution records
 void testQueueParser()
          Test the correct record parser is returned for Queue records
 void testStartParser()
          Test the correct record parser is returned for Start records
 void testUnknownRecordParser()
          Test that null is returned for an unknown record
 
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

RecordFactoryTest

public RecordFactoryTest(java.lang.String testName)
Constructor

Parameters:
testName - name of test suite
Method Detail

main

public static void main(java.lang.String[] args)
Main - for running stand-alone test

Parameters:
args - command line arguments

suite

public static junit.framework.Test suite()
Return a new test suite

Returns:
a new test suite

testQueueParser

public void testQueueParser()
Test the correct record parser is returned for Queue records


testExecutionParser

public void testExecutionParser()
Test the correct record parser is returned for Execution records


testStartParser

public void testStartParser()
Test the correct record parser is returned for Start records


testDeleteParser

public void testDeleteParser()
Test the correct record parser is returned for Delete records


testUnknownRecordParser

public void testUnknownRecordParser()
Test that null is returned for an unknown record