Clover coverage report - JFCUnit Test Coverage
Coverage timestamp: Mon Dec 20 2004 23:38:10 MST
file stats: LOC: 95   Methods: 3
NCLOC: 17   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
JWindowFinderTagHandler.java - 0% 0% 0%
coverage
 1   
 package junit.extensions.jfcunit.finder;
 2   
 
 3   
 import junit.extensions.xml.IXMLTestCase;
 4   
 import junit.extensions.xml.XMLException;
 5   
 
 6   
 import org.w3c.dom.Element;
 7   
 
 8   
 
 9   
 /**
 10   
  * This is a extension of the findTagHandler element. Where the
 11   
  * finder specified is JWindowFinder.
 12   
  *
 13   
  * <h3>Description</h3>
 14   
  * <p>
 15   
  *   This class is provided here mainly for completeness.
 16   
  *   This finder does not allow for finding specific window
 17   
  *   by a index. Not sure how useful this is. Might be replaceable
 18   
  *   with ComponentFinder using a class of JWindow.
 19   
  * </p>
 20   
  * <p>
 21   
  *   This class may be depricated in the future.
 22   
  * </p>
 23   
  * <h3>Finder tag name</h3>
 24   
  * <p>
 25   
  * JWindowFinder
 26   
  * </p>
 27   
  * <h3>Parameters</h3>
 28   
  * <table border="1" cellpadding="2" cellspacing="0">
 29   
  *   <tr>
 30   
  *     <td valign="top"><b>Attribute</b></td>
 31   
  *     <td valign="top"><b>Description</b></td>
 32   
  *     <td align="center" valign="top"><b>Required</b></td>
 33   
  *     <td valign="top"><b>Default</b></td>
 34   
  *     <td valign="top"><b>Values</b></td>
 35   
  *   </tr>
 36   
  *   <tr>
 37   
  *     <td valign="top">finder</td>
 38   
  *     <td valign="top">For this element the type must be set to JWindowFinder</td>
 39   
  *     <td valign="top" align="center">Yes</td>
 40   
  *     <td valign="top">N/A</td>
 41   
  *     <td valign="top">N/A</td>
 42   
  *   </tr>
 43   
  *   <tr>
 44   
  *     <td valign="top">id</td>
 45   
  *     <td valign="top">Id for the object found.</td>
 46   
  *     <td valign="top" align="center">Yes</td>
 47   
  *     <td valign="top">N/A</td>
 48   
  *     <td valign="top">String</td>
 49   
  *   </tr>
 50   
  * </table>
 51   
  * <h3>Example</h3>
 52   
  * <blockquote><pre>
 53   
  * &lt;find
 54   
  *    finder=&quot;JWindowFinder&quot;
 55   
  *    id=&quot;Window&quot;
 56   
  * /&gt;
 57   
  * </pre></blockquote>
 58   
  * <p>
 59   
  * The above finds the first window and identifies it as &quot;Window&quot;
 60   
  * </p>
 61   
  * @see junit.extensions.jfcunit.finder.JWindowFinder
 62   
  * @author Kevin Wilson
 63   
  * @author <a href="mailto:vraravam@thoughtworks.com">Vijay Aravamudhan : ThoughtWorks Inc.</a>
 64   
  */
 65   
 public class JWindowFinderTagHandler extends BaseFindTagHandler {
 66   
     /**
 67   
      * Constructor for ComponentFinderTagHandler.
 68   
      *
 69   
      * @param element     The element to be processed
 70   
      * @param testCase    The IXMLTestCase that uses this element
 71   
      */
 72  0
     public JWindowFinderTagHandler(final Element element,
 73   
         final IXMLTestCase testCase) {
 74  0
         super(element, testCase);
 75   
     }
 76   
 
 77   
     /**
 78   
      * @see junit.extensions.xml.elements.AbstractTagHandler#processElement()
 79   
      * @throws XMLException is thrown if the element cannot be understood.
 80   
      */
 81  0
     public void processElement() throws XMLException {
 82  0
         validateElement();
 83  0
         findWindow(new JWindowFinder());
 84   
     }
 85   
 
 86   
     /**
 87   
      * @see junit.extensions.xml.elements.AbstractTagHandler#processElement()
 88   
      * @throws XMLException when errors encountered processing XML.
 89   
      */
 90  0
     public void validateElement() throws XMLException {
 91   
         // do the default validations from the super class
 92  0
         super.validateElement();
 93   
     }
 94   
 }
 95