1 19 20 package org.netbeans.test.junit.utils; 21 22 import java.awt.Component ; 23 import javax.swing.JComponent ; 24 import org.netbeans.jemmy.ComponentChooser; 25 import org.netbeans.jemmy.operators.JComponentOperator; 26 27 31 public class StatisticsPanelOperator extends JComponentOperator { 32 33 39 public StatisticsPanelOperator() { 40 super((JComponent ) new ResultWindowOperator().waitSubComponent(statisticsSubchooser)); 41 } 42 43 private static final ComponentChooser statisticsSubchooser = new ComponentChooser() { 44 public boolean checkComponent(Component comp) { 45 return comp.getClass().getName().endsWith("StatisticsPanel"); } 47 48 public String getDescription() { 49 return "component instanceof org.netbeans.modules.junit.output.StatisticsPanel"; } 51 }; 52 53 } 54 | Popular Tags |