Changeset 1096 for trunk/autoquest-ui-core-test/src/test/java/de
- Timestamp:
- 02/20/13 11:16:57 (12 years ago)
- Location:
- trunk/autoquest-ui-core-test/src/test/java/de/ugoe/cs/autoquest/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-ui-core-test/src/test/java/de/ugoe/cs/autoquest/ui/CMDmergeSequencesTest.java
r1091 r1096 56 56 IEventType type = mock(IEventType.class); 57 57 58 Collection<List<Event>> sequences = new LinkedList<List<Event>>();58 List<List<Event>> sequences = new LinkedList<List<Event>>(); 59 59 60 60 for (int i = 0; i < 5; i++) { … … 67 67 } 68 68 69 sequences.add(sequence); 69 if (i % 2 == 0) { 70 sequences.add(sequence); 71 } 72 else { 73 sequences.add(0, sequence); 74 } 70 75 } 71 76 … … 78 83 assertTrue(result instanceof Collection<?>); 79 84 80 sequences = ( Collection<List<Event>>) result;85 sequences = (List<List<Event>>) result; 81 86 82 87 assertEquals(1, sequences.size()); -
trunk/autoquest-ui-core-test/src/test/java/de/ugoe/cs/autoquest/ui/CMDsplitSequencesTest.java
r1091 r1096 63 63 for (int j = 0; j < 10; j++) { 64 64 Event event = new Event(type); 65 event.setTimestamp(((i + 1) * 50) + (j * 10)); 65 66 if (j < 3) { 67 event.setTimestamp(((i + 1) * 50) + j); 68 } 69 else if (j < 7) { 70 event.setTimestamp(((i + 1) * 50) + j + 15); 71 } 72 else { 73 event.setTimestamp(((i + 1) * 50) + j + 30); 74 } 75 66 76 sequence.add(event); 67 77 } … … 80 90 sequences = (Collection<List<Event>>) result; 81 91 82 assertEquals( 50, sequences.size());92 assertEquals(15, sequences.size()); 83 93 84 94 for (List<Event> sequence : sequences) { 85 95 assertNotNull(sequence); 86 assert Equals(1, sequence.size());96 assertTrue((sequence.size() == 3) || (sequence.size() == 4)); 87 97 } 88 98 }
Note: See TracChangeset
for help on using the changeset viewer.