File tree Expand file tree Collapse file tree
src/test/java/jp/vmi/selenium/webdriver Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - $HOME/.m2
77install :
88 - gd_url=https://github.com/mozilla/geckodriver/releases/download
9- - gd_ver=v0.21 .0
9+ - gd_ver=v0.27 .0
1010 - ( mkdir -pv bin; cd bin ; curl -L "${gd_url}/${gd_ver}/geckodriver-${gd_ver}-linux64.tar.gz" | gunzip | tar xf - ; chmod +x geckodriver )
1111 - mvn -B -V dependency:resolve
1212before_script :
Original file line number Diff line number Diff line change 66import org .junit .Test ;
77import org .junit .rules .ExternalResource ;
88import org .junit .rules .TemporaryFolder ;
9- import org .openqa .selenium .SessionNotCreatedException ;
9+ import org .openqa .selenium .InvalidArgumentException ;
1010
1111import static org .openqa .selenium .firefox .FirefoxDriver .SystemProperty .*;
1212
@@ -52,14 +52,14 @@ protected void after() {
5252 * Test of not finding Firefox binary.
5353 *
5454 * @throws IOException exception.
55- * @throws IllegalArgumentException exception.
55+ * @throws InvalidArgumentException exception.
5656 */
57- @ Test (expected = IllegalStateException .class )
58- public void firefoxNotFoundIn_webdriver_firefox_bin () throws IOException , IllegalArgumentException {
57+ @ Test (expected = InvalidArgumentException .class )
58+ public void firefoxNotFoundIn_webdriver_firefox_bin () throws IOException , InvalidArgumentException {
5959 try {
6060 new FirefoxDriverFactory ().newInstance (new DriverOptions ());
61- } catch (SessionNotCreatedException e ) {
62- throw new IllegalStateException ( e );
61+ } catch (IllegalStateException e ) {
62+ throw new InvalidArgumentException ( e . getMessage (), e );
6363 }
6464 }
6565}
You can’t perform that action at this time.
0 commit comments