Changeset 468 for trunk/quest-core-tasktrees-test/src/test
- Timestamp:
- 07/25/12 11:58:42 (12 years ago)
- Location:
- trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/manager/TaskTreeManagerTest.java
r452 r468 71 71 { 72 72 simulateInteraction(new DummyGUIElement("elem1"), new DummyInteraction("bla", 1)); 73 new TaskTreeChecker().assertTask Map73 new TaskTreeChecker().assertTaskTree 74 74 ("Sequence sequence {" + 75 75 " Interaction bla {}" + 76 "}", mManager.getTaskTree() .getTaskMap());76 "}", mManager.getTaskTree()); 77 77 } 78 78 … … 92 92 simulateInteraction(element, new DummyInteraction("bla", 1)); 93 93 94 new TaskTreeChecker().assertTask Map94 new TaskTreeChecker().assertTaskTree 95 95 ("Sequence sequence {" + 96 96 " Interaction bla {}" + … … 99 99 " Interaction blu {}" + 100 100 " Interaction bla {}" + 101 "}", mManager.getTaskTree() .getTaskMap());101 "}", mManager.getTaskTree()); 102 102 } 103 103 … … 123 123 simulateInteraction(element6, new DummyInteraction("bla", 1)); 124 124 125 new TaskTreeChecker().assertTask Map125 new TaskTreeChecker().assertTaskTree 126 126 ("Sequence sequence0 {" + 127 127 " Sequence sequence1 {" + … … 143 143 " Interaction bla {}" + 144 144 " }" + 145 "}", mManager.getTaskTree() .getTaskMap());145 "}", mManager.getTaskTree()); 146 146 } 147 147 … … 176 176 simulateInteraction(element6, new DummyInteraction("blo", 1)); 177 177 178 new TaskTreeChecker().assertTask Map178 new TaskTreeChecker().assertTaskTree 179 179 ("Sequence sequence0 {" + 180 180 " Sequence sequence1 {" + … … 205 205 " Interaction blo {}" + 206 206 " }" + 207 "}", mManager.getTaskTree() .getTaskMap());207 "}", mManager.getTaskTree()); 208 208 } 209 209 … … 219 219 Interaction interaction1 = new DummyInteraction("bla", 1); 220 220 simulateInteraction(element1, interaction1); 221 new TaskTreeChecker().assertTask Map221 new TaskTreeChecker().assertTaskTree 222 222 ("Sequence sequence1 {" + 223 223 " Interaction bla {}" + 224 "}", mManager.getTaskTree() .getTaskMap());225 226 simulateInteraction(element1, interaction1); 227 new TaskTreeChecker().assertTask Map228 ("Sequence sequence1 {" + 229 " Iteration iteration1 {" + 230 " Interaction bla {}" + 231 " }" + 232 "}", mManager.getTaskTree() .getTaskMap());233 234 simulateInteraction(element1, interaction1); 235 new TaskTreeChecker().assertTask Map236 ("Sequence sequence1 {" + 237 " Iteration iteration1 {" + 238 " Interaction bla {}" + 239 " }" + 240 "}", mManager.getTaskTree() .getTaskMap());224 "}", mManager.getTaskTree()); 225 226 simulateInteraction(element1, interaction1); 227 new TaskTreeChecker().assertTaskTree 228 ("Sequence sequence1 {" + 229 " Iteration iteration1 {" + 230 " Interaction bla {}" + 231 " }" + 232 "}", mManager.getTaskTree()); 233 234 simulateInteraction(element1, interaction1); 235 new TaskTreeChecker().assertTaskTree 236 ("Sequence sequence1 {" + 237 " Iteration iteration1 {" + 238 " Interaction bla {}" + 239 " }" + 240 "}", mManager.getTaskTree()); 241 241 242 242 for (int i = 0; i < 10; i++) … … 245 245 } 246 246 247 new TaskTreeChecker().assertTask Map248 ("Sequence sequence1 {" + 249 " Iteration iteration1 {" + 250 " Interaction bla {}" + 251 " }" + 252 "}", mManager.getTaskTree() .getTaskMap());247 new TaskTreeChecker().assertTaskTree 248 ("Sequence sequence1 {" + 249 " Iteration iteration1 {" + 250 " Interaction bla {}" + 251 " }" + 252 "}", mManager.getTaskTree()); 253 253 254 254 // now test with preceding and trailing other interactions … … 265 265 simulateInteraction(element1, interaction2); 266 266 267 new TaskTreeChecker().assertTask Map267 new TaskTreeChecker().assertTaskTree 268 268 ("Sequence sequence1 {" + 269 269 " Iteration iteration1 {" + … … 277 277 " Interaction blup {}" + 278 278 " Interaction bli {}" + 279 "}", mManager.getTaskTree() .getTaskMap());279 "}", mManager.getTaskTree()); 280 280 281 281 // now test with iterations of iterations … … 297 297 } 298 298 299 new TaskTreeChecker().assertTask Map299 new TaskTreeChecker().assertTaskTree 300 300 ("Sequence sequence0 {" + 301 301 " Iteration iteration0 {" + … … 322 322 " }" + 323 323 " }" + 324 "}", mManager.getTaskTree() .getTaskMap());324 "}", mManager.getTaskTree()); 325 325 326 326 } … … 341 341 simulateInteraction(element1, interaction2); 342 342 simulateInteraction(element1, interaction3); 343 new TaskTreeChecker().assertTask Map343 new TaskTreeChecker().assertTaskTree 344 344 ("Sequence sequence1 {" + 345 345 " Interaction bla {}" + 346 346 " Interaction bli {}" + 347 347 " Interaction blup {}" + 348 "}", mManager.getTaskTree() .getTaskMap());348 "}", mManager.getTaskTree()); 349 349 350 350 simulateInteraction(element1, interaction1); 351 351 simulateInteraction(element1, interaction2); 352 352 simulateInteraction(element1, interaction3); 353 new TaskTreeChecker().assertTask Map353 new TaskTreeChecker().assertTaskTree 354 354 ("Sequence sequence1 {" + 355 355 " Iteration iteration1 {" + … … 360 360 " }" + 361 361 " }" + 362 "}", mManager.getTaskTree() .getTaskMap());362 "}", mManager.getTaskTree()); 363 363 364 364 simulateInteraction(element1, interaction1); 365 365 simulateInteraction(element1, interaction2); 366 366 simulateInteraction(element1, interaction3); 367 new TaskTreeChecker().assertTask Map367 new TaskTreeChecker().assertTaskTree 368 368 ("Sequence sequence1 {" + 369 369 " Iteration iteration1 {" + … … 374 374 " }" + 375 375 " }" + 376 "}", mManager.getTaskTree() .getTaskMap());376 "}", mManager.getTaskTree()); 377 377 378 378 for (int i = 0; i < 10; i++) … … 383 383 } 384 384 385 new TaskTreeChecker().assertTask Map385 new TaskTreeChecker().assertTaskTree 386 386 ("Sequence sequence1 {" + 387 387 " Iteration iteration1 {" + … … 392 392 " }" + 393 393 " }" + 394 "}", mManager.getTaskTree() .getTaskMap());394 "}", mManager.getTaskTree()); 395 395 396 396 // now test with preceding and trailing other interactions … … 411 411 simulateInteraction(element1, interaction4); 412 412 413 new TaskTreeChecker().assertTask Map413 new TaskTreeChecker().assertTaskTree 414 414 ("Sequence sequence1 {" + 415 415 " Iteration iteration1 {" + … … 433 433 " Interaction blo {}" + 434 434 " Interaction ble {}" + 435 "}", mManager.getTaskTree() .getTaskMap());435 "}", mManager.getTaskTree()); 436 436 437 437 // now test with iterations of iterations … … 458 458 } 459 459 460 new TaskTreeChecker().assertTask Map460 new TaskTreeChecker().assertTaskTree 461 461 ("Sequence sequence1 {" + 462 462 " Iteration iteration1 {" + … … 505 505 " }" + 506 506 " }" + 507 "}", mManager.getTaskTree() .getTaskMap());507 "}", mManager.getTaskTree()); 508 508 } 509 509 … … 539 539 simulateInteraction(element1, interaction1); 540 540 541 new TaskTreeChecker().assertTask Map541 new TaskTreeChecker().assertTaskTree 542 542 ("Sequence sequence0 {" + 543 543 " Sequence sequence1 {" + … … 560 560 " Interaction bla {}" + 561 561 " }" + 562 "}", mManager.getTaskTree() .getTaskMap());562 "}", mManager.getTaskTree()); 563 563 564 564 } -
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 -
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/testutils/TaskTreeChecker.java
r445 r468 70 70 */ 71 71 //----------------------------------------------------------------------------------------------- 72 public void assertTask Map(String taskTreeSpec, Map<TaskTreeNode, NodeInfo> taskMap)72 public void assertTaskTree(String taskTreeSpec, TaskTree taskTree) 73 73 { 74 74 Map<TaskTreeNode, Integer> taskMapCopy = new HashMap<TaskTreeNode, Integer>(); 75 75 76 for (Map.Entry<TaskTreeNode, NodeInfo> entry : task Map.entrySet())76 for (Map.Entry<TaskTreeNode, NodeInfo> entry : taskTree.getTaskMap().entrySet()) 77 77 { 78 78 if (entry.getValue().getNoOfOccurencesInTree() > 0)
Note: See TracChangeset
for help on using the changeset viewer.