Changeset 1768
- Timestamp:
- 09/26/14 10:46:28 (10 years ago)
- Location:
- trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/AbstractTemporalRelationshipTC.java
r1294 r1768 54 54 /** */ 55 55 private ITaskFactory taskFactory = new TaskFactory(); 56 57 /** */58 private TaskTreeDecoder decoder = null;59 56 60 57 /** */ … … 68 65 Console.reset(); 69 66 new TextConsole(Level.FINEST); 70 71 decoder = new TaskTreeDecoder(taskFactory, taskBuilder);72 67 } 73 68 … … 128 123 RuleApplicationStatus status; 129 124 125 TaskTreeDecoder decoder = new TaskTreeDecoder(taskFactory, taskBuilder); 130 126 ITaskInstance inputList = (ITaskInstance) decoder.decode(inputSpec); 131 127 … … 169 165 String expectedOutputSpec) 170 166 { 167 System.out.println("#####################################################################"); 171 168 ISessionScopeRule rule = null; 172 169 … … 215 212 } 216 213 214 TaskTreeDecoder decoder = new TaskTreeDecoder(taskFactory, taskBuilder); 217 215 ITaskInstanceList inputList = decoder.decode(inputSpec); 218 219 216 assertTrue(inputList instanceof IUserSession); 217 218 ITaskInstanceList expectedList = decoder.decode(expectedOutputSpec); 219 assertTrue(expectedList instanceof IUserSession); 220 221 new TaskTreeChecker().assertEventTaskInstancesEqual(expectedList, inputList); 222 223 // reparse the input list to ensure that no doublings of task instances occurs 224 decoder = new TaskTreeDecoder(taskFactory, taskBuilder); 225 inputList = decoder.decode(inputSpec); 220 226 221 227 List<IUserSession> sessionList = new LinkedList<IUserSession>(); … … 230 236 assertNotNull(result.getRuleApplicationStatus()); 231 237 232 ITaskInstanceList expectedList = decoder.decode(expectedOutputSpec); 238 // reparse the expected list to ensure that no doublings of tasks occur 239 expectedList = decoder.decode(expectedOutputSpec); 233 240 234 241 System.out.println("\nExpected Result:"); … … 238 245 239 246 new TaskTreeChecker().assertTaskInstanceListsEqual(expectedList, inputList); 240 new TaskTreeValidator().validate(inputList); 247 List<IUserSession> sessions = new LinkedList<IUserSession>(); 248 sessions.add((IUserSession) inputList); 249 sessions.add((IUserSession) expectedList); 250 new TaskTreeValidator().validate(sessions, true); 241 251 } 242 252
Note: See TracChangeset
for help on using the changeset viewer.