Clover coverage report - clover
Coverage timestamp: Sat Oct 8 2005 22:54:17 EDT
file stats: LOC: 38   Methods: 2
NCLOC: 19   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
AbstractButtonTester.java 25% 44.4% 100% 46.7%
coverage coverage
 1   
 package abbot.tester;
 2   
 
 3   
 import java.awt.Component;
 4   
 
 5   
 import javax.swing.*;
 6   
 
 7   
 
 8   
 public class AbstractButtonTester extends JComponentTester {
 9   
 
 10  3
     public String deriveTag(Component comp) {
 11   
         // If the component class is custom, don't provide a tag
 12  3
         if (isCustom(comp.getClass()))
 13  3
             return null;
 14   
 
 15  0
         AbstractButton absButton = ((AbstractButton)comp);
 16  0
         String tag = stripHTML(absButton.getText());
 17  0
         if ("".equals(tag) || tag == null) {
 18  0
             tag = super.deriveTag(comp);  
 19   
         }
 20  0
         return tag;
 21   
     }
 22   
 
 23   
     /** AbstractButton click action. */
 24  3
     public void actionClick(final Component c) {
 25   
         /*
 26   
         if (getEventMode() == EM_PROG) {
 27   
             invokeAndWait(new Runnable() {
 28   
                 public void run() {
 29   
                     ((JButton)c).doClick();
 30   
                 }
 31   
             });
 32   
         }
 33   
         */
 34  3
         click(c);
 35  3
         waitForIdle();
 36   
     }
 37   
 }
 38