Bugs item #3395872, was opened at 2011-08-21 20:59
Message generated for change (Tracker Item Submitted) made by timp
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3395872&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HtmlUnit plugin
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Tim P (timp)
Assigned to: Nobody/Anonymous (nobody)
Summary: TestingEngineResponseException created without HttpStatu

Initial Comment:
HtmlUnitTestingEngineImpl.gotoPage no longer returns the failing status

   public void gotoPage(URL initialURL) throws TestingEngineResponseException {
       try {
           wc.getPage(initialURL);
           win = wc.getCurrentWindow();
           form = null;
       } catch (FailingHttpStatusCodeException ex) {
               // only throw exception if necessary
               if (!ignoreFailingStatusCodes) {
                   throw new TestingEngineResponseException(
                           "unexpected status code ["+ex.getStatusCode()+"]
at URL: ["+initialURL+"]", ex);
               }
       } catch (IOException ex) {
           throw new RuntimeException(ex);
       }
   }

should be

   public void gotoPage(URL initialURL) throws TestingEngineResponseException {
       try {
           wc.getPage(initialURL);
           win = wc.getCurrentWindow();
           form = null;
       } catch (FailingHttpStatusCodeException ex) {
               // only throw exception if necessary
               if (!ignoreFailingStatusCodes) {
                   throw new TestingEngineResponseException(ex.getStatusCode(),
                           "unexpected status code ["+ex.getStatusCode()+"]
at URL: ["+initialURL+"]",  ex);
               }
       } catch (IOException ex) {
           throw new RuntimeException(ex);
       }
   }


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=3395872&group_id=61302

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
JWebUnit-development mailing list
JWebUnit-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to