Changeset 468 for trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation
- Timestamp:
- 07/25/12 11:58:42 (12 years ago)
- Location:
- trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation/DefaultGUIElementSequenceDetectionRuleTest.java
r452 r468 37 37 simulateInteraction(new DummyGUIElement("elem1"), new DummyInteraction("bla", 1)); 38 38 39 new TaskTreeChecker().assertTask Map39 new TaskTreeChecker().assertTaskTree 40 40 ("Sequence sequence {" + 41 41 " Interaction bla {}" + 42 "}", getTaskTree() .getTaskMap());42 "}", getTaskTree()); 43 43 } 44 44 … … 58 58 simulateInteraction(element, new DummyInteraction("bla", 1)); 59 59 60 new TaskTreeChecker().assertTask Map60 new TaskTreeChecker().assertTaskTree 61 61 ("Sequence sequence {" + 62 62 " Interaction bla {}" + … … 65 65 " Interaction blu {}" + 66 66 " Interaction bla {}" + 67 "}", getTaskTree() .getTaskMap());67 "}", getTaskTree()); 68 68 } 69 69 … … 89 89 simulateInteraction(element6, new DummyInteraction("bla", 1)); 90 90 91 new TaskTreeChecker().assertTask Map91 new TaskTreeChecker().assertTaskTree 92 92 ("Sequence sequence0 {" + 93 93 " Sequence sequence1 {" + … … 109 109 " Interaction bla {}" + 110 110 " }" + 111 "}", getTaskTree() .getTaskMap());111 "}", getTaskTree()); 112 112 } 113 113 … … 142 142 simulateInteraction(element6, new DummyInteraction("blo", 1)); 143 143 144 new TaskTreeChecker().assertTask Map144 new TaskTreeChecker().assertTaskTree 145 145 ("Sequence sequence0 {" + 146 146 " Sequence sequence1 {" + … … 171 171 " Interaction blo {}" + 172 172 " }" + 173 "}", getTaskTree() .getTaskMap());173 "}", getTaskTree()); 174 174 } 175 175 … … 205 205 simulateInteraction(element1, interaction1); 206 206 207 new TaskTreeChecker().assertTask Map207 new TaskTreeChecker().assertTaskTree 208 208 ("Sequence sequence0 {" + 209 209 " Sequence sequence1 {" + … … 226 226 " Interaction bla {}" + 227 227 " }" + 228 "}", getTaskTree() .getTaskMap());228 "}", getTaskTree()); 229 229 230 230 } -
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation/DefaultIterationDetectionRuleTest.java
r452 r468 38 38 Interaction interaction1 = new DummyInteraction("bla", 1); 39 39 simulateInteraction(element1, interaction1); 40 new TaskTreeChecker().assertTask Map40 new TaskTreeChecker().assertTaskTree 41 41 ("Sequence sequence1 {" + 42 42 " Interaction bla {}" + 43 "}", getTaskTree() .getTaskMap());44 45 simulateInteraction(element1, interaction1); 46 new TaskTreeChecker().assertTask Map47 ("Sequence sequence1 {" + 48 " Iteration iteration1 {" + 49 " Interaction bla {}" + 50 " }" + 51 "}", getTaskTree() .getTaskMap());52 53 simulateInteraction(element1, interaction1); 54 new TaskTreeChecker().assertTask Map55 ("Sequence sequence1 {" + 56 " Iteration iteration1 {" + 57 " Interaction bla {}" + 58 " }" + 59 "}", getTaskTree() .getTaskMap());43 "}", getTaskTree()); 44 45 simulateInteraction(element1, interaction1); 46 new TaskTreeChecker().assertTaskTree 47 ("Sequence sequence1 {" + 48 " Iteration iteration1 {" + 49 " Interaction bla {}" + 50 " }" + 51 "}", getTaskTree()); 52 53 simulateInteraction(element1, interaction1); 54 new TaskTreeChecker().assertTaskTree 55 ("Sequence sequence1 {" + 56 " Iteration iteration1 {" + 57 " Interaction bla {}" + 58 " }" + 59 "}", getTaskTree()); 60 60 61 61 for (int i = 0; i < 10; i++) … … 64 64 } 65 65 66 new TaskTreeChecker().assertTask Map67 ("Sequence sequence1 {" + 68 " Iteration iteration1 {" + 69 " Interaction bla {}" + 70 " }" + 71 "}", getTaskTree() .getTaskMap());66 new TaskTreeChecker().assertTaskTree 67 ("Sequence sequence1 {" + 68 " Iteration iteration1 {" + 69 " Interaction bla {}" + 70 " }" + 71 "}", getTaskTree()); 72 72 73 73 // now test with preceding and trailing other interactions … … 84 84 simulateInteraction(element1, interaction2); 85 85 86 new TaskTreeChecker().assertTask Map86 new TaskTreeChecker().assertTaskTree 87 87 ("Sequence sequence1 {" + 88 88 " Iteration iteration1 {" + … … 96 96 " Interaction blup {}" + 97 97 " Interaction bli {}" + 98 "}", getTaskTree() .getTaskMap());98 "}", getTaskTree()); 99 99 100 100 // now test with iterations of iterations … … 116 116 } 117 117 118 new TaskTreeChecker().assertTask Map118 new TaskTreeChecker().assertTaskTree 119 119 ("Sequence sequence1 {" + 120 120 " Iteration iteration1 {" + … … 141 141 " }" + 142 142 " }" + 143 "}", getTaskTree() .getTaskMap());143 "}", getTaskTree()); 144 144 145 145 } … … 160 160 simulateInteraction(element1, interaction2); 161 161 simulateInteraction(element1, interaction3); 162 new TaskTreeChecker().assertTask Map162 new TaskTreeChecker().assertTaskTree 163 163 ("Sequence sequence1 {" + 164 164 " Interaction bla {}" + 165 165 " Interaction bli {}" + 166 166 " Interaction blup {}" + 167 "}", getTaskTree() .getTaskMap());168 169 simulateInteraction(element1, interaction1); 170 simulateInteraction(element1, interaction2); 171 simulateInteraction(element1, interaction3); 172 new TaskTreeChecker().assertTask Map173 ("Sequence sequence1 {" + 174 " Iteration iteration1 {" + 175 " Sequence sequence2 {" + 176 " Interaction bla {}" + 177 " Interaction bli {}" + 178 " Interaction blup {}" + 179 " }" + 180 " }" + 181 "}", getTaskTree() .getTaskMap());182 183 simulateInteraction(element1, interaction1); 184 simulateInteraction(element1, interaction2); 185 simulateInteraction(element1, interaction3); 186 new TaskTreeChecker().assertTask Map187 ("Sequence sequence1 {" + 188 " Iteration iteration1 {" + 189 " Sequence sequence2 {" + 190 " Interaction bla {}" + 191 " Interaction bli {}" + 192 " Interaction blup {}" + 193 " }" + 194 " }" + 195 "}", getTaskTree() .getTaskMap());167 "}", getTaskTree()); 168 169 simulateInteraction(element1, interaction1); 170 simulateInteraction(element1, interaction2); 171 simulateInteraction(element1, interaction3); 172 new TaskTreeChecker().assertTaskTree 173 ("Sequence sequence1 {" + 174 " Iteration iteration1 {" + 175 " Sequence sequence2 {" + 176 " Interaction bla {}" + 177 " Interaction bli {}" + 178 " Interaction blup {}" + 179 " }" + 180 " }" + 181 "}", getTaskTree()); 182 183 simulateInteraction(element1, interaction1); 184 simulateInteraction(element1, interaction2); 185 simulateInteraction(element1, interaction3); 186 new TaskTreeChecker().assertTaskTree 187 ("Sequence sequence1 {" + 188 " Iteration iteration1 {" + 189 " Sequence sequence2 {" + 190 " Interaction bla {}" + 191 " Interaction bli {}" + 192 " Interaction blup {}" + 193 " }" + 194 " }" + 195 "}", getTaskTree()); 196 196 197 197 for (int i = 0; i < 10; i++) … … 202 202 } 203 203 204 new TaskTreeChecker().assertTask Map205 ("Sequence sequence1 {" + 206 " Iteration iteration1 {" + 207 " Sequence sequence2 {" + 208 " Interaction bla {}" + 209 " Interaction bli {}" + 210 " Interaction blup {}" + 211 " }" + 212 " }" + 213 "}", getTaskTree() .getTaskMap());204 new TaskTreeChecker().assertTaskTree 205 ("Sequence sequence1 {" + 206 " Iteration iteration1 {" + 207 " Sequence sequence2 {" + 208 " Interaction bla {}" + 209 " Interaction bli {}" + 210 " Interaction blup {}" + 211 " }" + 212 " }" + 213 "}", getTaskTree()); 214 214 215 215 // now test with preceding and trailing other interactions … … 230 230 simulateInteraction(element1, interaction4); 231 231 232 new TaskTreeChecker().assertTask Map232 new TaskTreeChecker().assertTaskTree 233 233 ("Sequence sequence1 {" + 234 234 " Iteration iteration1 {" + … … 252 252 " Interaction blo {}" + 253 253 " Interaction ble {}" + 254 "}", getTaskTree() .getTaskMap());254 "}", getTaskTree()); 255 255 256 256 // now test with iterations of iterations … … 277 277 } 278 278 279 new TaskTreeChecker().assertTask Map279 new TaskTreeChecker().assertTaskTree 280 280 ("Sequence sequence1 {" + 281 281 " Iteration iteration1 {" + … … 324 324 " }" + 325 325 " }" + 326 "}", getTaskTree() .getTaskMap());326 "}", getTaskTree()); 327 327 } 328 328 -
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation/DefaultMouseClickReductionRuleTest.java
r452 r468 49 49 simulateInteraction(element1, new MouseClick(leftBtn)); 50 50 51 new TaskTreeChecker().assertTask Map51 new TaskTreeChecker().assertTaskTree 52 52 ("Sequence sequence {" + 53 53 " Interaction LeftMouseClick {}" + 54 "}", getTaskTree() .getTaskMap());54 "}", getTaskTree()); 55 55 56 56 simulateInteraction(element1, new DummyInteraction("bla", 1)); … … 62 62 simulateInteraction(element1, new DummyInteraction("blu", 1)); 63 63 64 new TaskTreeChecker().assertTask Map64 new TaskTreeChecker().assertTaskTree 65 65 ("Sequence sequence {" + 66 66 " Interaction LeftMouseClick {}" + … … 70 70 " Interaction blo {}" + 71 71 " Interaction blu {}" + 72 "}", getTaskTree() .getTaskMap());72 "}", getTaskTree()); 73 73 74 74 simulateInteraction(element2, new DummyInteraction("bla", 1)); … … 80 80 simulateInteraction(element2, new DummyInteraction("blu", 1)); 81 81 82 new TaskTreeChecker().assertTask Map82 new TaskTreeChecker().assertTaskTree 83 83 ("Sequence sequence0 {" + 84 84 " Sequence sequence1 {" + … … 97 97 " Interaction blu {}" + 98 98 " }" + 99 "}", getTaskTree() .getTaskMap());99 "}", getTaskTree()); 100 100 101 101 simulateInteraction(element1, new MouseButtonDown(leftBtn)); … … 103 103 simulateInteraction(element2, new MouseClick(leftBtn)); 104 104 105 new TaskTreeChecker().assertTask Map105 new TaskTreeChecker().assertTaskTree 106 106 ("Sequence sequence0 {" + 107 107 " Sequence sequence1 {" + … … 127 127 " Interaction LeftMouseClick {}" + 128 128 " }" + 129 "}", getTaskTree() .getTaskMap());129 "}", getTaskTree()); 130 130 131 131 simulateInteraction(element1, new MouseButtonDown(middleBtn)); … … 134 134 simulateInteraction(element2, new DummyInteraction("bla", 1)); 135 135 136 new TaskTreeChecker().assertTask Map136 new TaskTreeChecker().assertTaskTree 137 137 ("Sequence sequence0 {" + 138 138 " Sequence sequence1 {" + … … 168 168 " Interaction bla {}" + 169 169 " }" + 170 "}", getTaskTree() .getTaskMap());170 "}", getTaskTree()); 171 171 172 172 } -
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation/DefaultTextInputReductionRuleTest.java
r452 r468 40 40 simulateInteraction(element1, new KeyPressed(VirtualKey.LETTER_A)); 41 41 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_A)); 42 new TaskTreeChecker(true).assertTask Map42 new TaskTreeChecker(true).assertTaskTree 43 43 ("Sequence sequence0 {" + 44 44 " TextInputInteraction TextInput a {" + … … 46 46 " Interaction KeyReleased LETTER_A {}" + 47 47 " }" + 48 "}", getTaskTree() .getTaskMap());48 "}", getTaskTree()); 49 49 50 50 simulateInteraction(element1, new KeyPressed(VirtualKey.LETTER_B)); 51 51 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_B)); 52 new TaskTreeChecker().assertTask Map52 new TaskTreeChecker().assertTaskTree 53 53 ("Sequence sequence0 {" + 54 54 " TextInputInteraction TextInput ab {" + … … 58 58 " Interaction KeyReleased LETTER_B {}" + 59 59 " }" + 60 "}", getTaskTree() .getTaskMap());60 "}", getTaskTree()); 61 61 62 62 simulateInteraction(element1, new KeyPressed(VirtualKey.SHIFT)); … … 64 64 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_C)); 65 65 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 66 new TaskTreeChecker().assertTask Map66 new TaskTreeChecker().assertTaskTree 67 67 ("Sequence sequence0 {" + 68 68 " TextInputInteraction TextInput abC {" + … … 76 76 " Interaction KeyReleased SHIFT {}" + 77 77 " }" + 78 "}", getTaskTree() .getTaskMap());78 "}", getTaskTree()); 79 79 80 80 simulateInteraction(element1, new KeyPressed(VirtualKey.SHIFT)); … … 86 86 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_F)); 87 87 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 88 new TaskTreeChecker().assertTask Map88 new TaskTreeChecker().assertTaskTree 89 89 ("Sequence sequence0 {" + 90 90 " TextInputInteraction TextInput abCDEF {" + … … 106 106 " Interaction KeyReleased SHIFT {}" + 107 107 " }" + 108 "}", getTaskTree() .getTaskMap());108 "}", getTaskTree()); 109 109 110 110 … … 115 115 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 116 116 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 117 new TaskTreeChecker().assertTask Map117 new TaskTreeChecker().assertTaskTree 118 118 ("Sequence sequence0 {" + 119 119 " TextInputInteraction TextInput abCDEFg {" + … … 141 141 " Interaction KeyReleased SHIFT {}" + 142 142 " }" + 143 "}", getTaskTree() .getTaskMap());143 "}", getTaskTree()); 144 144 145 145 } … … 157 157 simulateInteraction(element1, new KeyPressed(VirtualKey.LETTER_A)); 158 158 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_A)); 159 new TaskTreeChecker().assertTask Map159 new TaskTreeChecker().assertTaskTree 160 160 ("Sequence sequence0 {" + 161 161 " TextInputInteraction TextInput a {" + … … 163 163 " Interaction KeyReleased LETTER_A {}" + 164 164 " }" + 165 "}", getTaskTree() .getTaskMap());165 "}", getTaskTree()); 166 166 167 167 simulateInteraction(element2, new KeyPressed(VirtualKey.LETTER_B)); 168 168 simulateInteraction(element2, new KeyReleased(VirtualKey.LETTER_B)); 169 new TaskTreeChecker().assertTask Map169 new TaskTreeChecker().assertTaskTree 170 170 ("Sequence sequence0 {" + 171 171 " Sequence sequence1 {" + … … 181 181 " }" + 182 182 " }" + 183 "}", getTaskTree() .getTaskMap());183 "}", getTaskTree()); 184 184 185 185 simulateInteraction(element1, new KeyPressed(VirtualKey.SHIFT)); … … 187 187 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_C)); 188 188 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 189 new TaskTreeChecker().assertTask Map189 new TaskTreeChecker().assertTaskTree 190 190 ("Sequence sequence0 {" + 191 191 " Sequence sequence1 {" + … … 209 209 " }" + 210 210 " }" + 211 "}", getTaskTree() .getTaskMap());211 "}", getTaskTree()); 212 212 213 213 simulateInteraction(element2, new KeyPressed(VirtualKey.SHIFT)); … … 219 219 simulateInteraction(element2, new KeyReleased(VirtualKey.LETTER_F)); 220 220 simulateInteraction(element2, new KeyReleased(VirtualKey.SHIFT)); 221 new TaskTreeChecker().assertTask Map221 new TaskTreeChecker().assertTaskTree 222 222 ("Sequence sequence0 {" + 223 223 " Sequence sequence1 {" + … … 253 253 " }" + 254 254 " }" + 255 "}", getTaskTree() .getTaskMap());255 "}", getTaskTree()); 256 256 257 257 … … 262 262 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 263 263 simulateInteraction(element1, new KeyReleased(VirtualKey.SHIFT)); 264 new TaskTreeChecker().assertTask Map264 new TaskTreeChecker().assertTaskTree 265 265 ("Sequence sequence0 {" + 266 266 " Sequence sequence1 {" + … … 306 306 " }" + 307 307 " }" + 308 "}", getTaskTree() .getTaskMap());308 "}", getTaskTree()); 309 309 310 310 } … … 333 333 simulateInteraction(element1, new KeyPressed(VirtualKey.LETTER_F)); 334 334 simulateInteraction(element1, new KeyReleased(VirtualKey.LETTER_F)); 335 new TaskTreeChecker().assertTask Map335 new TaskTreeChecker().assertTaskTree 336 336 ("Sequence sequence0 {" + 337 337 " TextInputInteraction TextInput abcef {" + … … 351 351 " Interaction KeyReleased LETTER_F {}" + 352 352 " }" + 353 "}", getTaskTree() .getTaskMap());353 "}", getTaskTree()); 354 354 355 355 simulateInteraction(element1, new KeyPressed(VirtualKey.BACK_SPACE)); … … 359 359 simulateInteraction(element1, new KeyPressed(VirtualKey.BACK_SPACE)); 360 360 simulateInteraction(element1, new KeyReleased(VirtualKey.BACK_SPACE)); 361 new TaskTreeChecker().assertTask Map361 new TaskTreeChecker().assertTaskTree 362 362 ("Sequence sequence0 {" + 363 363 " TextInputInteraction TextInput ab {" + … … 383 383 " Interaction KeyReleased BACK_SPACE {}" + 384 384 " }" + 385 "}", getTaskTree() .getTaskMap());385 "}", getTaskTree()); 386 386 387 387 } -
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/temporalrelation/TrackBarSelectionDetectionRuleTest.java
r452 r468 38 38 GUIElement element1 = new DummyTrackBar(); 39 39 simulateInteraction(element1, new ValueSelection<Integer>(1)); 40 new TaskTreeChecker().assertTask Map40 new TaskTreeChecker().assertTaskTree 41 41 ("Sequence sequence1 {" + 42 42 " Iteration interation1 {" + … … 45 45 " }" + 46 46 " }" + 47 "}", getTaskTree() .getTaskMap());47 "}", getTaskTree()); 48 48 49 49 simulateInteraction(element1, new ValueSelection<Integer>(2)); 50 new TaskTreeChecker().assertTask Map50 new TaskTreeChecker().assertTaskTree 51 51 ("Sequence sequence1 {" + 52 52 " Iteration interation1 {" + … … 56 56 " }" + 57 57 " }" + 58 "}", getTaskTree() .getTaskMap());58 "}", getTaskTree()); 59 59 60 60 simulateInteraction(element1, new ValueSelection<Integer>(3)); 61 new TaskTreeChecker().assertTask Map61 new TaskTreeChecker().assertTaskTree 62 62 ("Sequence sequence1 {" + 63 63 " Iteration interation1 {" + … … 68 68 " }" + 69 69 " }" + 70 "}", getTaskTree() .getTaskMap());70 "}", getTaskTree()); 71 71 72 72 simulateInteraction(element1, new ValueSelection<Integer>(2)); 73 new TaskTreeChecker().assertTask Map73 new TaskTreeChecker().assertTaskTree 74 74 ("Sequence sequence1 {" + 75 75 " Iteration interation1 {" + … … 80 80 " }" + 81 81 " }" + 82 "}", getTaskTree() .getTaskMap());82 "}", getTaskTree()); 83 83 84 84 simulateInteraction(element1, new ValueSelection<Integer>(3)); 85 new TaskTreeChecker().assertTask Map85 new TaskTreeChecker().assertTaskTree 86 86 ("Sequence sequence1 {" + 87 87 " Iteration interation1 {" + … … 92 92 " }" + 93 93 " }" + 94 "}", getTaskTree() .getTaskMap());94 "}", getTaskTree()); 95 95 96 96 } … … 122 122 simulateInteraction(element1, new ValueSelection<Integer>(1)); 123 123 124 new TaskTreeChecker().assertTask Map124 new TaskTreeChecker().assertTaskTree 125 125 ("Sequence sequence1 {" + 126 126 " Iteration interation1 {" + … … 153 153 " }" + 154 154 " }" + 155 "}", getTaskTree() .getTaskMap());155 "}", getTaskTree()); 156 156 } 157 157
Note: See TracChangeset
for help on using the changeset viewer.