Suppose we have simple test case @Before public void prepare() { //the site that is currently unavailable. For simplicity I use some artificial domain setBaseUrl( "http://someUnavailableSite123.com" ); } @Test public void goToLogin() { beginAt( "/" ); }
And the plugin used as the underlying engine is 'Webdriver' In this case I receive a NPE in beginAt call: java.lang.NullPointerException at net.sourceforge.jwebunit.webdriver.WebDriverTestingEngineImpl.gotoPage(WebDriverTestingEngineImpl.java:231) at net.sourceforge.jwebunit.webdriver.WebDriverTestingEngineImpl.beginAt(WebDriverTestingEngineImpl.java:150) at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:234) at net.sourceforge.jwebunit.junit.JWebUnit.beginAt(JWebUnit.java:167) at ....goToLogin(LoginPageTest.java:15) The problem looks like to be on the line: throwFailingHttpStatusCodeExceptionIfNecessary(this.response.getStatusLine().getStatusCode(), urlStr); Could this be improved? ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ JWebUnit-users mailing list JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users