Changeset 1127 for trunk/autoquest-core-tasktrees-test/src/test
- Timestamp:
- 03/18/13 11:54:15 (12 years ago)
- Location:
- trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation
- Files:
-
- 2 added
- 1 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/AbstractTemporalRelationshipTC.java
r1106 r1127 184 184 } 185 185 else { 186 status = RuleApplicationStatus. RULE_NOT_APPLIED;187 } 188 189 assertTrue(status != RuleApplicationStatus. RULE_APPLICATION_FEASIBLE);186 status = RuleApplicationStatus.NOT_APPLIED; 187 } 188 189 assertTrue(status != RuleApplicationStatus.FEASIBLE); 190 190 191 191 if ((result != null) && (result.getNewlyCreatedParentNodes() != null)) { … … 195 195 } 196 196 197 if (status == RuleApplicationStatus. RULE_NOT_APPLIED) {197 if (status == RuleApplicationStatus.NOT_APPLIED) { 198 198 toBeAppliedOn.pop(); 199 199 } 200 200 201 201 } 202 while ((!toBeAppliedOn.isEmpty()) || 203 (status == RuleApplicationStatus.RULE_APPLICATION_FINISHED)); 202 while ((!toBeAppliedOn.isEmpty()) || (status == RuleApplicationStatus.FINISHED)); 204 203 205 204 return taskTreeNodeFactory.createTaskTree(sequence); -
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/IterationOfSubtreesDetectionRuleTest.java
r1106 r1127 29 29 * @author 2012, last modified by $Author: patrick$ 30 30 */ 31 public class DefaultIterationDetectionRuleTest extends AbstractTemporalRelationshipTC {31 public class IterationOfSubtreesDetectionRuleTest extends AbstractTemporalRelationshipTC { 32 32 33 33 /** … … 42 42 ("Sequence sequence1 {" + 43 43 " Event bla {}" + 44 "}", getTaskTree( DefaultIterationDetectionRule.class, null));45 46 simulateEvent(event1, element1); 47 new TaskTreeChecker().assertTaskTree 48 ("Sequence sequence1 {" + 49 " Iteration iteration1 {" + 50 " Event bla {}" + 51 " }" + 52 "}", getTaskTree( DefaultIterationDetectionRule.class, null));53 54 simulateEvent(event1, element1); 55 new TaskTreeChecker().assertTaskTree 56 ("Sequence sequence1 {" + 57 " Iteration iteration1 {" + 58 " Event bla {}" + 59 " }" + 60 "}", getTaskTree( DefaultIterationDetectionRule.class, null));44 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 45 46 simulateEvent(event1, element1); 47 new TaskTreeChecker().assertTaskTree 48 ("Sequence sequence1 {" + 49 " Iteration iteration1 {" + 50 " Event bla {}" + 51 " }" + 52 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 53 54 simulateEvent(event1, element1); 55 new TaskTreeChecker().assertTaskTree 56 ("Sequence sequence1 {" + 57 " Iteration iteration1 {" + 58 " Event bla {}" + 59 " }" + 60 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 61 61 62 62 for (int i = 0; i < 10; i++) { … … 69 69 " Event bla {}" + 70 70 " }" + 71 "}", getTaskTree( DefaultIterationDetectionRule.class, null));71 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 72 72 73 73 // now test with preceding and trailing other events … … 95 95 " Event blup {}" + 96 96 " Event bli {}" + 97 "}", getTaskTree( DefaultIterationDetectionRule.class, null));97 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 98 98 99 99 // now test with iterations of iterations … … 136 136 " }" + 137 137 " }" + 138 "}", getTaskTree( DefaultIterationDetectionRule.class, null));138 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 139 139 140 140 } … … 157 157 " Event bli {}" + 158 158 " Event blup {}" + 159 "}", getTaskTree( DefaultIterationDetectionRule.class, null));160 161 simulateEvent(event1, element1); 162 simulateEvent(event2, element1); 163 simulateEvent(event3, element1); 164 new TaskTreeChecker().assertTaskTree 165 ("Sequence sequence1 {" + 166 " Iteration iteration1 {" + 167 " Sequence sequence2 {" + 168 " Event bla {}" + 169 " Event bli {}" + 170 " Event blup {}" + 171 " }" + 172 " }" + 173 "}", getTaskTree( DefaultIterationDetectionRule.class, null));174 175 simulateEvent(event1, element1); 176 simulateEvent(event2, element1); 177 simulateEvent(event3, element1); 178 new TaskTreeChecker().assertTaskTree 179 ("Sequence sequence1 {" + 180 " Iteration iteration1 {" + 181 " Sequence sequence2 {" + 182 " Event bla {}" + 183 " Event bli {}" + 184 " Event blup {}" + 185 " }" + 186 " }" + 187 "}", getTaskTree( DefaultIterationDetectionRule.class, null));159 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 160 161 simulateEvent(event1, element1); 162 simulateEvent(event2, element1); 163 simulateEvent(event3, element1); 164 new TaskTreeChecker().assertTaskTree 165 ("Sequence sequence1 {" + 166 " Iteration iteration1 {" + 167 " Sequence sequence2 {" + 168 " Event bla {}" + 169 " Event bli {}" + 170 " Event blup {}" + 171 " }" + 172 " }" + 173 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 174 175 simulateEvent(event1, element1); 176 simulateEvent(event2, element1); 177 simulateEvent(event3, element1); 178 new TaskTreeChecker().assertTaskTree 179 ("Sequence sequence1 {" + 180 " Iteration iteration1 {" + 181 " Sequence sequence2 {" + 182 " Event bla {}" + 183 " Event bli {}" + 184 " Event blup {}" + 185 " }" + 186 " }" + 187 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 188 188 189 189 for (int i = 0; i < 10; i++) { … … 202 202 " }" + 203 203 " }" + 204 "}", getTaskTree( DefaultIterationDetectionRule.class, null));204 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 205 205 206 206 // now test with preceding and trailing other events … … 242 242 " Event blo {}" + 243 243 " Event ble {}" + 244 "}", getTaskTree( DefaultIterationDetectionRule.class, null));244 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 245 245 246 246 // now test with iterations of iterations … … 310 310 " }" + 311 311 " }" + 312 "}", getTaskTree( DefaultIterationDetectionRule.class, null));312 "}", getTaskTree(IterationOfSubtreesDetectionRule.class, null)); 313 313 } 314 314 -
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceDependingOnEventTypeDetectionRuleTest.java
r1106 r1127 28 28 * @author 2011, last modified by $Author: $ 29 29 */ 30 public class DefaultGuiEventSequenceDetectionRuleTest extends AbstractTemporalRelationshipTC {30 public class SequenceDependingOnEventTypeDetectionRuleTest extends AbstractTemporalRelationshipTC { 31 31 32 32 /** … … 43 43 " Event start {}" + 44 44 " Event end {}" + 45 "}", getTaskTree( DefaultGuiEventSequenceDetectionRule.class, null));45 "}", getTaskTree(SequenceDependingOnEventTypeDetectionRule.class, null)); 46 46 } 47 47 … … 62 62 " Event bla {}" + 63 63 " Event end {}" + 64 "}", getTaskTree( DefaultGuiEventSequenceDetectionRule.class, null));64 "}", getTaskTree(SequenceDependingOnEventTypeDetectionRule.class, null)); 65 65 } 66 66 … … 96 96 " Event end {}" + 97 97 " }" + 98 "}", getTaskTree( DefaultGuiEventSequenceDetectionRule.class, null));98 "}", getTaskTree(SequenceDependingOnEventTypeDetectionRule.class, null)); 99 99 } 100 100 … … 128 128 " }" + 129 129 " Event startFinish {}" + 130 "}", getTaskTree( DefaultGuiEventSequenceDetectionRule.class, null));130 "}", getTaskTree(SequenceDependingOnEventTypeDetectionRule.class, null)); 131 131 } 132 132 … … 190 190 " }" + 191 191 " Event finish {}" + 192 "}", getTaskTree( DefaultGuiEventSequenceDetectionRule.class, null));192 "}", getTaskTree(SequenceDependingOnEventTypeDetectionRule.class, null)); 193 193 } 194 194 … … 260 260 " }" + 261 261 " Event finish {}" + 262 "}", getTaskTree( DefaultGuiEventSequenceDetectionRule.class, null));262 "}", getTaskTree(SequenceDependingOnEventTypeDetectionRule.class, null)); 263 263 } 264 264 -
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleTest.java
r1109 r1127 20 20 import de.ugoe.cs.autoquest.eventcore.gui.IInteraction; 21 21 import de.ugoe.cs.autoquest.tasktrees.TaskTreeChecker; 22 import de.ugoe.cs.autoquest.tasktrees.nodeequality.NodeEquality; 22 23 import de.ugoe.cs.autoquest.test.DummyGUIElement; 23 24 import de.ugoe.cs.autoquest.test.DummyInteraction; … … 29 30 * @author 2012, last modified by $Author: patrick$ 30 31 */ 31 public class DefaultTaskSequenceDetectionRuleTest extends AbstractTemporalRelationshipTC {32 public class SequenceForTaskDetectionRuleTest extends AbstractTemporalRelationshipTC { 32 33 33 34 /** … … 65 66 simulateEvent(new DummyInteraction("noise8", 1), element1); 66 67 67 new TaskTreeChecker().assertTaskTree 68 ("Sequence sequence1 {" + 69 " Event noise0 {}" + 70 " Sequence sequence2 {" + 71 " Event action1 {}" + 72 " Event action2 {}" + 73 " Event action3 {}" + 74 " Event action4 {}" + 68 new TaskTreeChecker(true).assertTaskTree 69 ("Sequence root {" + 70 " Sequence session1 {" + 71 " Event noise0 {}" + 72 " Sequence sequence2 {" + 73 " Event action1 {}" + 74 " Event action2 {}" + 75 " Event action3 {}" + 76 " Event action4 {}" + 77 " }" + 78 " Event noise1 {}" + 79 " Event noise2 {}" + 80 " Sequence sequence2 {" + 81 " Event action1 {}" + 82 " Event action2 {}" + 83 " Event action3 {}" + 84 " Event action4 {}" + 85 " }" + 86 " Event noise3 {}" + 87 " Event noise4 {}" + 88 " Event noise5 {}" + 89 " Event noise6 {}" + 90 " Sequence sequence2 {" + 91 " Event action1 {}" + 92 " Event action2 {}" + 93 " Event action3 {}" + 94 " Event action4 {}" + 95 " }" + 96 " Event noise7 {}" + 97 " Event noise8 {}" + 75 98 " }" + 76 " Event noise1 {}" + 77 " Event noise2 {}" + 78 " Sequence sequence2 {" + 79 " Event action1 {}" + 80 " Event action2 {}" + 81 " Event action3 {}" + 82 " Event action4 {}" + 83 " }" + 84 " Event noise3 {}" + 85 " Event noise4 {}" + 86 " Event noise5 {}" + 87 " Event noise6 {}" + 88 " Sequence sequence2 {" + 89 " Event action1 {}" + 90 " Event action2 {}" + 91 " Event action3 {}" + 92 " Event action4 {}" + 93 " }" + 94 " Event noise7 {}" + 95 " Event noise8 {}" + 96 "}", getTaskTree()); 99 "}", getTaskTree(SequenceForTaskDetectionRule.class, NodeEquality.LEXICALLY_EQUAL)); 97 100 98 101 } -
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceOnGuiElementDetectionRuleTest.java
r1106 r1127 28 28 * @author 2011, last modified by $Author: $ 29 29 */ 30 public class DefaultGuiElementSequenceDetectionRuleTest extends AbstractTemporalRelationshipTC {30 public class SequenceOnGuiElementDetectionRuleTest extends AbstractTemporalRelationshipTC { 31 31 32 32 /** … … 62 62 " Event blu {}" + 63 63 " Event bla {}" + 64 "}", getTaskTree( DefaultGuiElementSequenceDetectionRule.class, null));64 "}", getTaskTree(SequenceOnGuiElementDetectionRule.class, null)); 65 65 } 66 66 … … 103 103 " Event bla {}" + 104 104 " }" + 105 "}", getTaskTree( DefaultGuiElementSequenceDetectionRule.class, null));105 "}", getTaskTree(SequenceOnGuiElementDetectionRule.class, null)); 106 106 } 107 107 … … 162 162 " Event blo {}" + 163 163 " }" + 164 "}", getTaskTree( DefaultGuiElementSequenceDetectionRule.class, null));164 "}", getTaskTree(SequenceOnGuiElementDetectionRule.class, null)); 165 165 } 166 166 … … 233 233 " }" + 234 234 " }" + 235 "}", getTaskTree( DefaultGuiElementSequenceDetectionRule.class, null));235 "}", getTaskTree(SequenceOnGuiElementDetectionRule.class, null)); 236 236 } 237 237
Note: See TracChangeset
for help on using the changeset viewer.