net.sf.jsefa.test.xml
Class NodePositionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sf.jsefa.test.xml.NodePositionTest
All Implemented Interfaces:
junit.framework.Test

public class NodePositionTest
extends junit.framework.TestCase

Tests to test the position of xml nodes (i. e. their ordering).

Author:
Marko Kovacevic

Constructor Summary
NodePositionTest()
           
 
Method Summary
 void testPartialOrder()
          Test the node position when not all nodes are declared with a position annotation (i. e. there is a partial order on the set of nodes).
 void testTotalOrder()
          Test the node position when all nodes are declared with a position annotation (i. e. there is a total order on the set 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodePositionTest

public NodePositionTest()
Method Detail

testTotalOrder

public void testTotalOrder()
Test the node position when all nodes are declared with a position annotation (i. e. there is a total order on the set of nodes).


testPartialOrder

public void testPartialOrder()
Test the node position when not all nodes are declared with a position annotation (i. e. there is a partial order on the set of nodes).



Copyright © 2014. All rights reserved.