gov.sns.xal.model.xml
Class LatticeXmlTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--gov.sns.xal.model.xml.LatticeXmlTest
All Implemented Interfaces:
junit.framework.Test

public class LatticeXmlTest
extends junit.framework.TestCase


Field Summary
static java.lang.String s_strUrlContents
          lattice debug dump output file
static java.lang.String s_strUrlElemPos
          element position output file
static java.lang.String s_strUrlLattDbg
          lattice xml writer output file
static java.lang.String s_strUrlLattice
          lattice input file
 
Constructor Summary
LatticeXmlTest(java.lang.String arg0)
          Constructor for LatticeXmlTest.
 
Method Summary
static void main(java.lang.String[] args)
           
static Lattice newTestLattice()
           
protected  void setUp()
          Parse an XML file in the XAL Model Lattice format.
protected  void tearDown()
           
 void testContents()
          Print out the contents of the lattice using its text debugging method.
 void testParseDataAdaptor()
           
 void testPositions()
          Print out lattice elements and their positions.
 void testProperties()
          Query the Lattice object for properties and display them.
 void textWriter()
          Write the current Lattice object to an XML file in the XAL Model Lattice format.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

s_strUrlLattice

public static final java.lang.String s_strUrlLattice
lattice input file

See Also:
Constant Field Values

s_strUrlContents

public static final java.lang.String s_strUrlContents
lattice debug dump output file

See Also:
Constant Field Values

s_strUrlElemPos

public static final java.lang.String s_strUrlElemPos
element position output file

See Also:
Constant Field Values

s_strUrlLattDbg

public static final java.lang.String s_strUrlLattDbg
lattice xml writer output file

See Also:
Constant Field Values
Constructor Detail

LatticeXmlTest

public LatticeXmlTest(java.lang.String arg0)
Constructor for LatticeXmlTest.

Parameters:
arg0 -
Method Detail

main

public static void main(java.lang.String[] args)

testProperties

public void testProperties()
Query the Lattice object for properties and display them.


testContents

public void testContents()
Print out the contents of the lattice using its text debugging method.


testPositions

public void testPositions()
Print out lattice elements and their positions.


textWriter

public void textWriter()
Write the current Lattice object to an XML file in the XAL Model Lattice format.

See Also:
TestCase.tearDown()

testParseDataAdaptor

public void testParseDataAdaptor()

setUp

protected void setUp()
              throws java.lang.Exception
Parse an XML file in the XAL Model Lattice format.

Overrides:
setUp in class junit.framework.TestCase
java.lang.Exception
See Also:
TestCase.setUp()

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
java.lang.Exception
See Also:
TestCase.tearDown()

newTestLattice

public static Lattice newTestLattice()