From 2b72d81c43da4d6ed69b542c899fab26f11968d0 Mon Sep 17 00:00:00 2001 From: Damian Szczepanik Date: Thu, 11 Apr 2024 22:48:16 +0200 Subject: [PATCH] Bump up dependencies --- pom.xml | 10 +++++----- .../generators/EscapeHtmlReferenceTest.java | 18 +++++++++--------- .../FeaturesOverviewPageIntegrationTest.java | 6 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pom.xml b/pom.xml index 722a7feae..4c1138751 100644 --- a/pom.xml +++ b/pom.xml @@ -231,7 +231,7 @@ com.fasterxml.jackson jackson-bom - 2.16.1 + 2.17.0 pom import @@ -255,7 +255,7 @@ joda-time joda-time - 2.12.6 + 2.12.7 org.apache.commons @@ -276,7 +276,7 @@ commons-io commons-io - 2.15.1 + 2.16.1 org.apache.commons @@ -291,7 +291,7 @@ com.googlecode.owasp-java-html-sanitizer owasp-java-html-sanitizer - 20220608.1 + 20240325.1 @@ -333,7 +333,7 @@ org.mockito mockito-core - 5.10.0 + 5.11.0 test diff --git a/src/test/java/net/masterthought/cucumber/generators/EscapeHtmlReferenceTest.java b/src/test/java/net/masterthought/cucumber/generators/EscapeHtmlReferenceTest.java index 915741209..7f781bab6 100644 --- a/src/test/java/net/masterthought/cucumber/generators/EscapeHtmlReferenceTest.java +++ b/src/test/java/net/masterthought/cucumber/generators/EscapeHtmlReferenceTest.java @@ -1,11 +1,11 @@ package net.masterthought.cucumber.generators; -import org.apache.velocity.app.event.ReferenceInsertionEventHandler; -import org.junit.jupiter.api.Test; - import static org.apache.commons.text.StringEscapeUtils.escapeHtml4; import static org.assertj.core.api.Assertions.assertThat; +import org.apache.velocity.app.event.ReferenceInsertionEventHandler; +import org.junit.jupiter.api.Test; + /** * @author M.P. Korstanje (mpkorstanje@github) */ @@ -15,7 +15,7 @@ class EscapeHtmlReferenceTest { private final ReferenceInsertionEventHandler insertionEventHandler = new EscapeHtmlReference(); @Test - void referenceInsert_returnNormalText(){ + void referenceInsert_returnNormalText() { // given String normalText = "a plain statement"; @@ -27,7 +27,7 @@ void referenceInsert_returnNormalText(){ } @Test - void referenceInsert_shouldEscapeHtmlForAnyLabel(){ + void referenceInsert_shouldEscapeHtmlForAnyLabel() { // given String html = "a bold statement"; @@ -39,7 +39,7 @@ void referenceInsert_shouldEscapeHtmlForAnyLabel(){ } @Test - void referenceInsert_shouldNotEscapeWithSpecialTag(){ + void referenceInsert_shouldNotEscapeWithSpecialTag() { // given String html = "a bold statement"; @@ -51,7 +51,7 @@ void referenceInsert_shouldNotEscapeWithSpecialTag(){ } @Test - void referenceInsert_shouldReturnNullForNull(){ + void referenceInsert_shouldReturnNullForNull() { // given String html = null; @@ -63,9 +63,9 @@ void referenceInsert_shouldReturnNullForNull(){ } @Test - void referenceInsert_shouldSanitize(){ + void referenceInsert_shouldSanitize() { // given - String html = "a hyper web reference"; + String html = "a hyper web reference"; // when Object result = insertionEventHandler.referenceInsert(null, "$_sanitize_" + SOME_REFERENCE, html); diff --git a/src/test/java/net/masterthought/cucumber/generators/integrations/FeaturesOverviewPageIntegrationTest.java b/src/test/java/net/masterthought/cucumber/generators/integrations/FeaturesOverviewPageIntegrationTest.java index 39f639d4c..5b9ddfa37 100644 --- a/src/test/java/net/masterthought/cucumber/generators/integrations/FeaturesOverviewPageIntegrationTest.java +++ b/src/test/java/net/masterthought/cucumber/generators/integrations/FeaturesOverviewPageIntegrationTest.java @@ -1,5 +1,7 @@ package net.masterthought.cucumber.generators.integrations; +import static org.assertj.core.api.Assertions.assertThat; + import net.masterthought.cucumber.generators.FeaturesOverviewPage; import net.masterthought.cucumber.generators.integrations.helpers.DocumentAssertion; import net.masterthought.cucumber.generators.integrations.helpers.LeadAssertion; @@ -9,8 +11,6 @@ import org.apache.commons.io.FilenameUtils; import org.junit.jupiter.api.Test; -import static org.assertj.core.api.Assertions.assertThat; - /** * @author Damian Szczepanik (damianszczepanik@github) */ @@ -60,7 +60,7 @@ void generatePage_generatesClassifications() { // given final String[] names = {"Platform", "Browser", "Branch", "Repository"}; - final String[] values = {"Win", "Opera", "master", "Example Repository"}; + final String[] values = {"Win", "Opera", "master", "Example Repository"}; setUpWithJson(SAMPLE_JSON); for (int i = 0; i < names.length; i++) { configuration.addClassifications(names[i], values[i]);