Revision: 817
          http://jwebunit.svn.sourceforge.net/jwebunit/?rev=817&view=rev
Author:   henryju
Date:     2009-12-15 13:05:33 +0000 (Tue, 15 Dec 2009)

Log Message:
-----------
Fixed cast error reported by findbugs.

Modified Paths:
--------------
    
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java

Modified: 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
===================================================================
--- 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
       2009-11-30 16:14:19 UTC (rev 816)
+++ 
trunk/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitTestingEngineImpl.java
       2009-12-15 13:05:33 UTC (rev 817)
@@ -63,6 +63,7 @@
 import com.gargoylesoftware.htmlunit.WebWindowEvent;
 import com.gargoylesoftware.htmlunit.WebWindowListener;
 import com.gargoylesoftware.htmlunit.WebWindowNotFoundException;
+import com.gargoylesoftware.htmlunit.html.ClickableElement;
 import com.gargoylesoftware.htmlunit.html.DomComment;
 import com.gargoylesoftware.htmlunit.html.DomNode;
 import com.gargoylesoftware.htmlunit.html.FrameWindow;
@@ -1163,7 +1164,7 @@
         return null;
     }
 
-    public HtmlResetInput getResetButton(String buttonName) {
+    public ClickableElement getResetButton(String buttonName) {
         List<HtmlElement> btns = new LinkedList<HtmlElement>();
         if (form != null) {
             btns.addAll(getForm().getInputsByName(buttonName));
@@ -1181,7 +1182,7 @@
                 return btn;
             }
             if (o instanceof HtmlButton) {
-                HtmlResetInput btn = (HtmlResetInput) o;
+                HtmlButton btn = (HtmlButton) o;
                 if (btn.getTypeAttribute().equals("reset")) {
                     if (form == null) {
                         form = btn.getEnclosingFormOrDie();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to