Skip to content

Commit

Permalink
Bump up dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
damianszczepanik committed Apr 11, 2024
1 parent d1cd3d9 commit 2b72d81
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>2.16.1</version>
<version>2.17.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -255,7 +255,7 @@
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.12.6</version>
<version>2.12.7</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand All @@ -276,7 +276,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.1</version>
<version>2.16.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand All @@ -291,7 +291,7 @@
<dependency>
<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
<artifactId>owasp-java-html-sanitizer</artifactId>
<version>20220608.1</version>
<version>20240325.1</version>
</dependency>
<!-- Overriding guava from owasp java html sanitizer 20220608.1 to secure latest -->
<dependency>
Expand Down Expand Up @@ -333,7 +333,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.10.0</version>
<version>5.11.0</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -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)
*/
Expand All @@ -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";

Expand All @@ -27,7 +27,7 @@ void referenceInsert_returnNormalText(){
}

@Test
void referenceInsert_shouldEscapeHtmlForAnyLabel(){
void referenceInsert_shouldEscapeHtmlForAnyLabel() {
// given
String html = "<b>a bold statement</b>";

Expand All @@ -39,7 +39,7 @@ void referenceInsert_shouldEscapeHtmlForAnyLabel(){
}

@Test
void referenceInsert_shouldNotEscapeWithSpecialTag(){
void referenceInsert_shouldNotEscapeWithSpecialTag() {
// given
String html = "<b>a bold statement</b>";

Expand All @@ -51,7 +51,7 @@ void referenceInsert_shouldNotEscapeWithSpecialTag(){
}

@Test
void referenceInsert_shouldReturnNullForNull(){
void referenceInsert_shouldReturnNullForNull() {
// given
String html = null;

Expand All @@ -63,9 +63,9 @@ void referenceInsert_shouldReturnNullForNull(){
}

@Test
void referenceInsert_shouldSanitize(){
void referenceInsert_shouldSanitize() {
// given
String html = "<a href=\"www.example.com\" rel=\"nofollow noopener noreferrer\">a hyper web reference</a>";
String html = "<a href=\"www.example.com\" rel=\"noreferrer noopener nofollow\">a hyper web reference</a>";

// when
Object result = insertionEventHandler.referenceInsert(null, "$_sanitize_" + SOME_REFERENCE, html);
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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)
*/
Expand Down Expand Up @@ -60,7 +60,7 @@ void generatePage_generatesClassifications() {

// given
final String[] names = {"Platform", "Browser", "Branch", "Repository"};
final String[] values = {"Win", "Opera", "master", "<a href=\"example.com\" rel=\"nofollow noopener noreferrer\">Example Repository</a>"};
final String[] values = {"Win", "Opera", "master", "<a href=\"example.com\" rel=\"noreferrer noopener nofollow\">Example Repository</a>"};
setUpWithJson(SAMPLE_JSON);
for (int i = 0; i < names.length; i++) {
configuration.addClassifications(names[i], values[i]);
Expand Down

0 comments on commit 2b72d81

Please sign in to comment.