Changeset 601
- Timestamp:
- 08/23/12 13:43:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-jfc-test/src/test/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParserTest.java
r575 r601 1 //-------------------------------------------------------------------------------------------------2 1 // Module : $RCSfile: ReplayReaderTest.java,v $ 3 2 // Version : $Revision: 0.0 $ $Author: Patrick $ $Date: 26.11.2011 15:10:08 $ … … 5 4 // Creation : 2011 by Patrick 6 5 // Copyright : Patrick Harms, 2011 7 //-------------------------------------------------------------------------------------------------8 6 9 7 package de.ugoe.cs.quest.plugin.jfc; … … 24 22 import de.ugoe.cs.quest.plugin.jfc.guimodel.JFCGUIElement; 25 23 26 //-------------------------------------------------------------------------------------------------27 24 /** 28 25 * TODO comment … … 31 28 * @author 2011, last modified by $Author: $ 32 29 */ 33 // ------------------------------------------------------------------------------------------------- 30 public class JFCLogParserTest { 34 31 35 public class JFCLogParserTest36 {37 38 // -----------------------------------------------------------------------------------------------39 32 /** 40 * 41 */ 42 // ----------------------------------------------------------------------------------------------- 33 * 34 */ 43 35 @Before 44 public void setUp() 45 { 46 //Logger.getLogger("").getHandlers()[0].setFormatter(new SimpleLogFormatter()); 36 public void setUp() { 37 // Logger.getLogger("").getHandlers()[0].setFormatter(new SimpleLogFormatter()); 47 38 } 48 39 49 // -----------------------------------------------------------------------------------------------50 40 /** 51 * 52 */ 53 // ----------------------------------------------------------------------------------------------- 41 * 42 */ 54 43 @Test 55 public void test() throws Exception 56 { 44 public void test() throws Exception { 57 45 JFCLogParser parser = new JFCLogParser(null); 58 46 parser.parseFile(new File(ClassLoader.getSystemResource("trace.xml").getFile())); … … 74 62 System.err.println("}"); 75 63 System.err.println("\n\n"); 76 64 77 65 GUIModel guiModel = parser.getGuiModel(); 78 66 assertNotNull(guiModel); … … 85 73 /** 86 74 * TODO: comment 87 * 75 * 88 76 * @param root 89 77 * @param guiModel 90 78 */ 91 private void dumpGUIElement(IGUIElement guiElement, 92 GUIModel guiModel, 93 String indent) 94 { 79 private void dumpGUIElement(IGUIElement guiElement, GUIModel guiModel, String indent) { 95 80 assertTrue(guiElement instanceof JFCGUIElement); 96 81 97 82 System.err.print(indent); 98 83 System.err.print(guiElement); 99 84 100 85 List<IGUIElement> children = guiModel.getChildren(guiElement); 101 102 if ((children != null) && (children.size() > 0)) 103 { 86 87 if ((children != null) && (children.size() > 0)) { 104 88 System.err.println(" {"); 105 106 for (IGUIElement child: children) 107 { 89 90 for (IGUIElement child : children) { 108 91 dumpGUIElement(child, guiModel, indent + " "); 109 92 } 110 93 111 94 System.err.print(indent); 112 95 System.err.print("}"); 113 96 } 114 97 115 98 System.err.println(); 116 99 }
Note: See TracChangeset
for help on using the changeset viewer.