Changeset 807 for trunk/quest-core-tasktrees-test/src/test/java
- Timestamp:
- 09/11/12 16:45:51 (12 years ago)
- Location:
- trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/nodeequality
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/nodeequality/NodeEqualityTest.java
r655 r807 6 6 7 7 /** 8 * TODO comment 9 * 10 * @version $Revision: $ $Date: 15.08.2012$ 11 * @author 2012, last modified by $Author: pharms$ 8 * @author Patrick Harms 12 9 */ 13 10 public class NodeEqualityTest { 14 11 15 12 /** 16 * TODO: comment17 13 * 18 14 */ -
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/nodeequality/SequenceComparisonRuleTest.java
r655 r807 5 5 import org.junit.Test; 6 6 7 import de.ugoe.cs.quest.tasktrees.treeifc.ISelection; 7 8 import de.ugoe.cs.quest.tasktrees.treeifc.ISequence; 8 9 import de.ugoe.cs.quest.tasktrees.treeifc.ITaskTreeBuilder; … … 14 15 15 16 /** 16 * <p> 17 * TODO comment 18 * </p> 19 * 20 * @version $Revision: $ $Date: 16.08.2012$ 21 * @author 2012, last modified by $Author: pharms$ 17 * @author Patrick Harms 22 18 */ 23 19 public class SequenceComparisonRuleTest { 24 20 25 21 /** 26 * <p> 27 * TODO: comment 28 * </p> 29 * 22 * 30 23 */ 31 24 @Test … … 45 38 46 39 ISequence sequence1 = treeNodeFactory.createNewSequence(); 47 assertEquals(NodeEquality. LEXICALLY_EQUAL, rule.compare(sequence1, sequence1));40 assertEquals(NodeEquality.IDENTICAL, rule.compare(sequence1, sequence1)); 48 41 49 42 ISequence sequence2 = treeNodeFactory.createNewSequence(); … … 54 47 treeBuilder.addChild(sequence1, task1); 55 48 56 assert Null(rule.compare(sequence1, sequence2));57 assert Null(rule.compare(sequence2, sequence1));49 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence1, sequence2)); 50 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence2, sequence1)); 58 51 59 52 treeBuilder.addChild(sequence2, task1); … … 64 57 treeBuilder.addChild(sequence1, task2); 65 58 66 assert Null(rule.compare(sequence1, sequence2));67 assert Null(rule.compare(sequence2, sequence1));59 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence1, sequence2)); 60 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence2, sequence1)); 68 61 69 62 treeBuilder.addChild(sequence2, task2); … … 76 69 treeBuilder.addChild(sequence3, task1); 77 70 78 assertNull(rule.compare(sequence1, sequence3)); 79 assertNull(rule.compare(sequence3, sequence1)); 71 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence1, sequence3)); 72 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence3, sequence1)); 73 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence2, sequence3)); 74 assertEquals(NodeEquality.UNEQUAL, rule.compare(sequence3, sequence2)); 75 76 ISelection selection = treeNodeFactory.createNewSelection(); 77 assertNull(rule.compare(sequence1, selection)); 78 assertNull(rule.compare(selection, sequence1)); 79 assertNull(rule.compare(sequence2, selection)); 80 assertNull(rule.compare(selection, sequence2)); 81 assertNull(rule.compare(sequence3, selection)); 82 assertNull(rule.compare(selection, sequence3)); 80 83 } 81 84
Note: See TracChangeset
for help on using the changeset viewer.