Changeset 1058 for trunk/autoquest-plugin-jfc-test/src/test/java/de/ugoe/cs
- Timestamp:
- 02/01/13 12:16:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc-test/src/test/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParserTest.java
r1027 r1058 1 1 2 package de.ugoe.cs.autoquest.plugin.jfc; 2 3 … … 35 36 36 37 /** 37 * 38 * Test that parses regular log file. 38 39 */ 39 40 @Test 40 public void test () throws Exception {41 public void testParseRegularLog() throws Exception { 41 42 JFCSimplifiedLogParser parser = new JFCSimplifiedLogParser(null); 42 parser.parseFile(new File(ClassLoader.getSystemResource("newtrace2.log").getFile())); 43 parser.parseFile(new File(ClassLoader.getSystemResource("freemind_regularTrace.xml") 44 .getFile())); 45 Collection<List<Event>> events = parser.getSequences(); 46 47 assertNotNull(events); 48 assertTrue(events.size() > 0); 49 50 System.err.println("{"); 51 for (List<Event> session : events) { 52 System.err.println(" {"); 53 for (Event event : session) { 54 System.err.print(" "); 55 System.err.print(event); 56 System.err.println(","); 57 } 58 System.err.println(" }"); 59 } 60 System.err.println("}"); 61 System.err.println("\n\n"); 62 63 GUIModel guiModel = parser.getGuiModel(); 64 assertNotNull(guiModel); 65 66 for (IGUIElement root : guiModel.getRootElements()) { 67 dumpGUIElement(root, guiModel, ""); 68 } 69 } 70 71 /** 72 * Test that parses a log file that contains events that have no registered targets when parsed. 73 */ 74 @Test 75 public void testParseLogEventsWithoutTargets() throws Exception { 76 JFCSimplifiedLogParser parser = new JFCSimplifiedLogParser(null); 77 parser.parseFile(new File(ClassLoader 78 .getSystemResource("argouml_traceEventsWithoutTargets.xml").getFile())); 43 79 Collection<List<Event>> events = parser.getSequences(); 44 80
Note: See TracChangeset
for help on using the changeset viewer.