mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 04:15:07 +00:00
refactor: Fix for maven warnings (#2157)
* fix for maven warnings * Removed unwanted dependency and htmlunit upgraded to latest Co-authored-by: Mohana Rao S V <mohana.rao.s.v@tietoevry.com>
This commit is contained in:
1 parent
cd736d7a42
commit
adb0e25c2f
4 files changed
+5
-9
No files matched your search
@@ -46,10 +46,6 @@
|
|||||||
<groupId>org.hibernate</groupId>
|
<groupId>org.hibernate</groupId>
|
||||||
<artifactId>hibernate-core</artifactId>
|
<artifactId>hibernate-core</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.h2database</groupId>
|
|
||||||
<artifactId>h2</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>javax.xml.bind</groupId>
|
<groupId>javax.xml.bind</groupId>
|
||||||
<artifactId>jaxb-api</artifactId>
|
<artifactId>jaxb-api</artifactId>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
<artifactId>junit-jupiter-engine</artifactId>
|
<artifactId>junit-jupiter-api</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
+3
-3
@@ -80,11 +80,11 @@ public class AlbumListPage extends Page {
|
|||||||
*/
|
*/
|
||||||
public AlbumPage selectAlbum(String albumTitle) {
|
public AlbumPage selectAlbum(String albumTitle) {
|
||||||
// uses XPath to find list of html anchor tags with the class album in it
|
// uses XPath to find list of html anchor tags with the class album in it
|
||||||
var albumLinks = (List<HtmlAnchor>) page.getByXPath("//tr[@class='album']//a");
|
var albumLinks = (List<Object>) page.getByXPath("//tr[@class='album']//a");
|
||||||
for (var anchor : albumLinks) {
|
for (var anchor : albumLinks) {
|
||||||
if (anchor.getTextContent().equals(albumTitle)) {
|
if (((HtmlAnchor) anchor).getTextContent().equals(albumTitle)) {
|
||||||
try {
|
try {
|
||||||
anchor.click();
|
((HtmlAnchor) anchor).click();
|
||||||
return new AlbumPage(webClient);
|
return new AlbumPage(webClient);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOGGER.error("An error occured on selectAlbum", e);
|
LOGGER.error("An error occured on selectAlbum", e);
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<camel.version>2.25.1</camel.version>
|
<camel.version>2.25.1</camel.version>
|
||||||
<guava.version>19.0</guava.version>
|
<guava.version>19.0</guava.version>
|
||||||
<mockito.version>3.5.6</mockito.version>
|
<mockito.version>3.5.6</mockito.version>
|
||||||
<htmlunit.version>2.22</htmlunit.version>
|
<htmlunit.version>2.66.0</htmlunit.version>
|
||||||
<guice.version>4.0</guice.version>
|
<guice.version>4.0</guice.version>
|
||||||
<mongo-java-driver.version>3.12.8</mongo-java-driver.version>
|
<mongo-java-driver.version>3.12.8</mongo-java-driver.version>
|
||||||
<aws-lambda-core.version>1.1.0</aws-lambda-core.version>
|
<aws-lambda-core.version>1.1.0</aws-lambda-core.version>
|
||||||
|
|||||||
Reference in new issue
Block a user