mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 08:58:26 +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:
@@ -46,10 +46,6 @@
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.xml.bind</groupId>
|
||||
<artifactId>jaxb-api</artifactId>
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter-engine</artifactId>
|
||||
<artifactId>junit-jupiter-api</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
||||
+3
-3
@@ -80,11 +80,11 @@ public class AlbumListPage extends Page {
|
||||
*/
|
||||
public AlbumPage selectAlbum(String albumTitle) {
|
||||
// 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) {
|
||||
if (anchor.getTextContent().equals(albumTitle)) {
|
||||
if (((HtmlAnchor) anchor).getTextContent().equals(albumTitle)) {
|
||||
try {
|
||||
anchor.click();
|
||||
((HtmlAnchor) anchor).click();
|
||||
return new AlbumPage(webClient);
|
||||
} catch (IOException e) {
|
||||
LOGGER.error("An error occured on selectAlbum", e);
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<camel.version>2.25.1</camel.version>
|
||||
<guava.version>19.0</guava.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>
|
||||
<mongo-java-driver.version>3.12.8</mongo-java-driver.version>
|
||||
<aws-lambda-core.version>1.1.0</aws-lambda-core.version>
|
||||
|
||||
Reference in New Issue
Block a user