Changeset 1835 for trunk/autoquest-plugin-uml-test/src/test/java
- Timestamp:
- 11/27/14 12:44:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-uml-test/src/test/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtilsTest.java
r1763 r1835 167 167 ModelUtils.writeModelToFile(model, OUTPUT_DIR + "testCreateInteractionFromEventSequence_1_result.uml"); 168 168 } 169 170 @Test 171 public void testCreateInteractionFromEventSequence_2() throws Exception { 172 // parse log file 173 HTTPLogParser parser = 174 new HTTPLogParser(new File(ClassLoader 175 .getSystemResource("testCreateInteractionFromEventSequence_2_properties.txt") 176 .getFile())); 177 parser 178 .parseFile(new File(ClassLoader 179 .getSystemResource("testCreateInteractionFromEventSequence_2_usagedata.log") 180 .getFile())); 181 Collection<List<Event>> httpSequences = parser.getSequences(); 182 183 184 Model model = 185 ModelUtils.loadModel(ClassLoader 186 .getSystemResourceAsStream("testCreateInteractionFromEventSequence_2_model.uml")); 187 188 for (List<Event> httpSequence : httpSequences) { 189 for (Iterator<Event> eventIter = httpSequence.iterator(); eventIter.hasNext();) { 190 Event event = eventIter.next(); 191 if (!(event.getType() instanceof SOAPEventType)) { 192 eventIter.remove(); 193 } 194 } 195 196 UMLUtils.createInteractionFromEventSequence(httpSequence, model, "testSequence"); 197 } 198 199 ModelUtils.writeModelToFile(model, OUTPUT_DIR + "testCreateInteractionFromEventSequence_2_result.uml"); 200 201 } 169 202 170 203 @Test
Note: See TracChangeset
for help on using the changeset viewer.