Changeset 974 for trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe
- Timestamp:
- 11/08/12 19:56:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/TrackBarSelectionDetectionRuleTest.java
r927 r974 41 41 new TaskTreeChecker().assertTaskTree 42 42 ("Sequence sequence1 {" + 43 " Iteration i nteration1 {" +44 " Selection selection1 {" + 45 " Event ValueSelection {}" +46 " }" + 47 " }" + 48 "}", getTaskTree()); 49 50 simulateEvent(new ValueSelection<Integer>(2), element1); 51 new TaskTreeChecker().assertTaskTree 52 ("Sequence sequence1 {" + 53 " Iteration i nteration1 {" +54 " Selection selection1 {" + 55 " Event ValueSelection {}" +56 " Event ValueSelection {}" +57 " }" + 58 " }" + 59 "}", getTaskTree()); 60 61 simulateEvent(new ValueSelection<Integer>(3), element1); 62 new TaskTreeChecker().assertTaskTree 63 ("Sequence sequence1 {" + 64 " Iteration i nteration1 {" +65 " Selection selection1 {" + 66 " Event ValueSelection {}" +67 " Event ValueSelection {}" +68 " Event ValueSelection {}" +69 " }" + 70 " }" + 71 "}", getTaskTree()); 72 73 simulateEvent(new ValueSelection<Integer>(2), element1); 74 new TaskTreeChecker().assertTaskTree 75 ("Sequence sequence1 {" + 76 " Iteration i nteration1 {" +77 " Selection selection1 {" + 78 " Event ValueSelection {}" +79 " Event ValueSelection {}" +80 " Event ValueSelection {}" +81 " }" + 82 " }" + 83 "}", getTaskTree()); 84 85 simulateEvent(new ValueSelection<Integer>(3), element1); 86 new TaskTreeChecker().assertTaskTree 87 ("Sequence sequence1 {" + 88 " Iteration i nteration1 {" +89 " Selection selection1 {" + 90 " Event ValueSelection {}" +91 " Event ValueSelection {}" +92 " Event ValueSelection {}" +43 " Iteration iteration1 {" + 44 " Selection selection1 {" + 45 " Event ValueSelection(\"1\") {}" + 46 " }" + 47 " }" + 48 "}", getTaskTree()); 49 50 simulateEvent(new ValueSelection<Integer>(2), element1); 51 new TaskTreeChecker().assertTaskTree 52 ("Sequence sequence1 {" + 53 " Iteration iteration1 {" + 54 " Selection selection1 {" + 55 " Event ValueSelection(\"1\") {}" + 56 " Event ValueSelection(\"2\") {}" + 57 " }" + 58 " }" + 59 "}", getTaskTree()); 60 61 simulateEvent(new ValueSelection<Integer>(3), element1); 62 new TaskTreeChecker().assertTaskTree 63 ("Sequence sequence1 {" + 64 " Iteration iteration1 {" + 65 " Selection selection1 {" + 66 " Event ValueSelection(\"1\") {}" + 67 " Event ValueSelection(\"2\") {}" + 68 " Event ValueSelection(\"3\") {}" + 69 " }" + 70 " }" + 71 "}", getTaskTree()); 72 73 simulateEvent(new ValueSelection<Integer>(2), element1); 74 new TaskTreeChecker().assertTaskTree 75 ("Sequence sequence1 {" + 76 " Iteration iteration1 {" + 77 " Selection selection1 {" + 78 " Event ValueSelection(\"1\") {}" + 79 " Event ValueSelection(\"2\") {}" + 80 " Event ValueSelection(\"3\") {}" + 81 " }" + 82 " }" + 83 "}", getTaskTree()); 84 85 simulateEvent(new ValueSelection<Integer>(3), element1); 86 new TaskTreeChecker().assertTaskTree 87 ("Sequence sequence1 {" + 88 " Iteration iteration1 {" + 89 " Selection selection1 {" + 90 " Event ValueSelection(\"1\") {}" + 91 " Event ValueSelection(\"2\") {}" + 92 " Event ValueSelection(\"3\") {}" + 93 93 " }" + 94 94 " }" + … … 122 122 new TaskTreeChecker().assertTaskTree 123 123 ("Sequence sequence1 {" + 124 " Iteration i nteration1 {" +125 " Selection selection1 {" + 126 " Event ValueSelection {}" +127 " Event ValueSelection {}" +128 " Event ValueSelection {}" +129 " }" + 130 " }" + 131 " Event bla {}" + 132 " Event bla {}" + 133 " Iteration i nteration2 {" +124 " Iteration iteration1 {" + 125 " Selection selection1 {" + 126 " Event ValueSelection(\"1\") {}" + 127 " Event ValueSelection(\"2\") {}" + 128 " Event ValueSelection(\"3\") {}" + 129 " }" + 130 " }" + 131 " Event bla {}" + 132 " Event bla {}" + 133 " Iteration iteration2 {" + 134 134 " Selection selection2 {" + 135 " Event ValueSelection {}" +136 " Event ValueSelection {}" +137 " }" + 138 " }" + 139 " Event bla {}" + 140 " Iteration i nteration3 {" +135 " Event ValueSelection(\"2\") {}" + 136 " Event ValueSelection(\"1\") {}" + 137 " }" + 138 " }" + 139 " Event bla {}" + 140 " Iteration iteration3 {" + 141 141 " Selection selection3 {" + 142 " Event ValueSelection {}" +143 " Event ValueSelection {}" +144 " }" + 145 " }" + 146 " Event bla {}" + 147 " Event bla {}" + 148 " Iteration i nteration4 {" +142 " Event ValueSelection(\"3\") {}" + 143 " Event ValueSelection(\"2\") {}" + 144 " }" + 145 " }" + 146 " Event bla {}" + 147 " Event bla {}" + 148 " Iteration iteration4 {" + 149 149 " Selection selection4 {" + 150 " Event ValueSelection {}" + 150 " Event ValueSelection(\"1\") {}" + 151 " }" + 152 " }" + 153 "}", getTaskTree()); 154 } 155 156 /** 157 * 158 */ 159 @Test 160 public void testSubsequentSelectionsOnDifferentTrackbars() throws Exception { 161 IGUIElement element1 = new DummyTrackBar(); 162 IGUIElement element2 = new DummyTrackBar(); 163 simulateEvent(new ValueSelection<Integer>(1), element1); 164 simulateEvent(new ValueSelection<Integer>(2), element1); 165 simulateEvent(new ValueSelection<Integer>(3), element1); 166 simulateEvent(new ValueSelection<Integer>(1), element1); 167 simulateEvent(new ValueSelection<Integer>(2), element2); 168 simulateEvent(new ValueSelection<Integer>(1), element2); 169 simulateEvent(new ValueSelection<Integer>(3), element1); 170 simulateEvent(new ValueSelection<Integer>(2), element1); 171 simulateEvent(new ValueSelection<Integer>(3), element1); 172 simulateEvent(new ValueSelection<Integer>(1), element2); 173 simulateEvent(new ValueSelection<Integer>(1), element2); 174 175 new TaskTreeChecker().assertTaskTree 176 ("Sequence sequence1 {" + 177 " Iteration iteration1 {" + 178 " Sequence sequence2 {" + 179 " Sequence sequence3 {" + 180 " Iteration iteration2 {" + 181 " Selection selection1 {" + 182 " Event ValueSelection(\"1\") {}" + 183 " Event ValueSelection(\"3\") {}" + 184 " Event ValueSelection(\"2\") {}" + 185 " }" + 186 " }" + 187 " }" + 188 " Sequence sequence4 {" + 189 " Iteration iteration3 {" + 190 " Selection selection2 {" + 191 " Event ValueSelection(\"2\") {}" + 192 " Event ValueSelection(\"1\") {}" + 193 " }" + 194 " }" + 195 " }" + 151 196 " }" + 152 197 " }" +
Note: See TracChangeset
for help on using the changeset viewer.