umich.cac.data.test
Class NodesFieldTest

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

public class NodesFieldTest
extends junit.framework.TestCase

Tests for NodesField class.

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/doc/javadoc/umich/cac/data/test/NodesFieldTest.html,v 1.3 2003/10/21 20:33:46 rodmach Exp $
Author:
rmach@umich.edu

Constructor Summary
NodesFieldTest(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 testExampleInput()
          Test a complicated example that has hosts with various properties
 void testHostnameWithPPN()
          I have found this case in an accounting example sent to me that has the host:ppn=number of nodes instead of 2:ppn=2
 void testNodes()
          Test just plain node number
 void testNodesFieldWithGlobalPropertiesAndProperties()
          Test that the User field properly renders XML
 void testNodesFieldWithPPN()
          Test with the PPN property, which is converted to attribute
 void testNodesWithShared()
          Test with a shared global property
 void testPlusSeparatedListOfHosts()
          hosts are separated by +'s in the accounting file
 void testSingleNode()
          Test with the nodes=comma separated list of nodes
 
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

NodesFieldTest

public NodesFieldTest(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

testSingleNode

public void testSingleNode()
Test with the nodes=comma separated list of nodes


testNodesFieldWithPPN

public void testNodesFieldWithPPN()
Test with the PPN property, which is converted to attribute


testNodesWithShared

public void testNodesWithShared()
Test with a shared global property


testNodes

public void testNodes()
Test just plain node number


testPlusSeparatedListOfHosts

public void testPlusSeparatedListOfHosts()
hosts are separated by +'s in the accounting file


testExampleInput

public void testExampleInput()
Test a complicated example that has hosts with various properties


testHostnameWithPPN

public void testHostnameWithPPN()
I have found this case in an accounting example sent to me that has the host:ppn=number of nodes instead of 2:ppn=2


testNodesFieldWithGlobalPropertiesAndProperties

public void testNodesFieldWithGlobalPropertiesAndProperties()
Test that the User field properly renders XML