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:
MohanaRao SV
2022-10-30 22:21:17 +05:30
committed by GitHub
parent cd736d7a42
commit adb0e25c2f
4 changed files with 5 additions and 9 deletions
-4
View File
@@ -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>
+1 -1
View File
@@ -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>
@@ -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);
+1 -1
View File
@@ -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>