Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit f17f9b4

Browse files
committed
updated dependency versions
1 parent 2a41989 commit f17f9b4

File tree

5 files changed

+17
-84
lines changed

5 files changed

+17
-84
lines changed

pom.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,30 @@
6262

6363
<!-- dependency versions -->
6464

65-
<version.testutils>0.2</version.testutils>
65+
<version.testutils>0.3.3</version.testutils>
6666
<version.junit4>4.12</version.junit4>
67-
<version.junit5.jupiter>5.0.0</version.junit5.jupiter>
68-
<version.junit5.vintage>4.12.0</version.junit5.vintage>
69-
<version.junit5.platform>1.0.0</version.junit5.platform>
67+
<version.junit5.jupiter>5.0.3</version.junit5.jupiter>
68+
<version.junit5.vintage>4.12.3</version.junit5.vintage>
69+
<version.junit5.platform>1.0.3</version.junit5.platform>
7070
<version.hamcrest>1.3</version.hamcrest>
71-
<version.assertj>3.7.0</version.assertj>
72-
<version.mockito>2.7.22</version.mockito>
73-
<version.checkstyle>7.3</version.checkstyle>
71+
<version.assertj>3.9.0</version.assertj>
72+
<version.mockito>2.15.0</version.mockito>
73+
<version.checkstyle>8.8</version.checkstyle>
7474

75-
<version.jetty-server>9.4.5.v20170502</version.jetty-server>
75+
<version.jetty-server>9.4.8.v20171121</version.jetty-server>
7676

77-
<version.selenium>3.4.0</version.selenium>
77+
<version.selenium>3.9.1</version.selenium>
7878

7979
<version.slf4j>1.7.25</version.slf4j>
8080
<version.logback>1.2.3</version.logback>
8181

8282
<version.commons.lang>2.6</version.commons.lang>
83-
<version.commons.io>2.5</version.commons.io>
83+
<version.commons.io>2.6</version.commons.io>
8484
<version.commons.logging>1.2</version.commons.logging>
85-
<version.commons.codec>1.10</version.commons.codec>
85+
<version.commons.codec>1.11</version.commons.codec>
8686

87-
<version.lombok>1.16.16</version.lombok>
88-
<version.bytebuddy>1.7.1</version.bytebuddy>
87+
<version.lombok>1.16.20</version.lombok>
88+
<version.bytebuddy>1.7.10</version.bytebuddy>
8989

9090
<!-- plugin versions -->
9191

webtester-core/src/main/java/info/novatec/testit/webtester/browser/operations/AlertHandler.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
import java.util.Optional;
44

55
import org.openqa.selenium.Alert;
6-
import org.openqa.selenium.Beta;
76
import org.openqa.selenium.NoAlertPresentException;
87
import org.openqa.selenium.WebDriver;
9-
import org.openqa.selenium.security.Credentials;
10-
import org.openqa.selenium.security.UserAndPassword;
118

129
import lombok.extern.slf4j.Slf4j;
1310

@@ -39,36 +36,6 @@ public AlertHandler(Browser browser) {
3936
super(browser);
4037
}
4138

42-
/**
43-
* Authenticate a Basic-Auth popup using the given username and password.
44-
* <p>
45-
* This operation is declared as "BETA" by the Selenium developers and might break in the future in case it changes.
46-
*
47-
* @param username the username to use
48-
* @param password the password to use
49-
* @see Alert#authenticateUsing(Credentials)
50-
* @since 2.0
51-
*/
52-
@Beta
53-
public void authenticateWith(String username, String password) {
54-
authenticateWith(new UserAndPassword(username, password));
55-
}
56-
57-
/**
58-
* Authenticate a Basic-Auth popup using the given {@link Credentials credendials}.
59-
* <p>
60-
* This operation is decalred as "BETA" by the Selenium developers and might break in the future in case it changes.
61-
*
62-
* @param credentials the credentials to use
63-
* @see Alert#authenticateUsing(Credentials)
64-
* @since 2.0
65-
*/
66-
@Beta
67-
public void authenticateWith(Credentials credentials) {
68-
ActionTemplate.browser(browser()).execute(browser -> webDriver().switchTo().alert().authenticateUsing(credentials));
69-
log.debug("authenticated using credentials: {}", credentials);
70-
}
71-
7239
/**
7340
* Accept any alert message in case one is displayed.
7441
* If no alert is displayed, the method will do nothing.

webtester-core/src/test/java/info/novatec/testit/webtester/browser/operations/AlertHandlerTest.java

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
import org.openqa.selenium.Alert;
2020
import org.openqa.selenium.NoAlertPresentException;
2121
import org.openqa.selenium.WebDriver;
22-
import org.openqa.selenium.security.Credentials;
23-
import org.openqa.selenium.security.UserAndPassword;
2422

2523
import info.novatec.testit.webtester.browser.Browser;
2624
import info.novatec.testit.webtester.events.EventSystem;
@@ -215,36 +213,4 @@ public void gettingExistentAlertReturnsItAsAnOptional() {
215213

216214
}
217215

218-
public static class AuthenticateWith extends AbstractAlertHandlerTest {
219-
220-
@Captor
221-
ArgumentCaptor<Credentials> credentialsCaptor;
222-
223-
@Test
224-
public void canAuthenticateWithCredentials() {
225-
226-
Alert alert = alertIsPresent("please sign in");
227-
Credentials credentials = new UserAndPassword("foo", "bar");
228-
cut.authenticateWith(credentials);
229-
230-
verify(alert).authenticateUsing(credentials);
231-
232-
}
233-
234-
@Test
235-
public void canAuthenticateWithUsernameAndPassword() {
236-
237-
Alert alert = alertIsPresent("please sign in");
238-
cut.authenticateWith("foo", "bar");
239-
verify(alert).authenticateUsing(credentialsCaptor.capture());
240-
241-
Credentials credentials = credentialsCaptor.getValue();
242-
assertThat(credentials).isInstanceOf(UserAndPassword.class);
243-
assertThat((( UserAndPassword ) credentials).getUsername()).isEqualTo("foo");
244-
assertThat((( UserAndPassword ) credentials).getPassword()).isEqualTo("bar");
245-
246-
}
247-
248-
}
249-
250216
}

webtester-kotlin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<name>testIT | WebTester - Kotlin</name>
1414

1515
<properties>
16-
<version.kotlin>1.1.2</version.kotlin>
17-
<version.dokka>0.9.14</version.dokka>
16+
<version.kotlin>1.2.21</version.kotlin>
17+
<version.dokka>0.9.15</version.dokka>
1818
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
1919
</properties>
2020

webtester-support-spring4/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<name>testIT | WebTester - Support - Spring 4.x</name>
1515

1616
<properties>
17-
<version.spring>4.3.8.RELEASE</version.spring>
18-
<version.spring.boot>1.5.3.RELEASE</version.spring.boot>
17+
<version.spring>4.3.14.RELEASE</version.spring>
18+
<version.spring.boot>1.5.10.RELEASE</version.spring.boot>
1919
</properties>
2020

2121
<dependencies>

0 commit comments

Comments
 (0)