From b2e8e058ed9aa2a4b54c5c7f01754936cb58f899 Mon Sep 17 00:00:00 2001 From: Paul Weber Date: Thu, 14 Sep 2023 11:06:55 +0200 Subject: [PATCH] SpotlessApply --- .../UnionBasedSQLInjectionVulnerabilityTest.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/sasanlabs/service/vulnerability/sqlInjection/UnionBasedSQLInjectionVulnerabilityTest.java b/src/test/java/org/sasanlabs/service/vulnerability/sqlInjection/UnionBasedSQLInjectionVulnerabilityTest.java index 714a76b6..c0dea511 100644 --- a/src/test/java/org/sasanlabs/service/vulnerability/sqlInjection/UnionBasedSQLInjectionVulnerabilityTest.java +++ b/src/test/java/org/sasanlabs/service/vulnerability/sqlInjection/UnionBasedSQLInjectionVulnerabilityTest.java @@ -8,7 +8,6 @@ import java.io.IOException; import java.util.Collections; -import java.util.HashMap; import java.util.Map; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -37,7 +36,8 @@ void setUp() throws IOException { @Test void getCarInformationLevel1_ExpectParamInjected() throws IOException { // Act - final Map params = Collections.singletonMap("id", "1 UNION SELECT * FROM cars;"); + final Map params = + Collections.singletonMap("id", "1 UNION SELECT * FROM cars;"); unionBasedSQLInjectionVulnerability.getCarInformationLevel1(params); // Assert @@ -50,7 +50,8 @@ void getCarInformationLevel1_ExpectParamInjected() throws IOException { @Test void getCarInformationLevel2_ExpectParamInjected() throws IOException { // Act - final Map params = Collections.singletonMap("id", "1' UNION SELECT * FROM cars; --"); + final Map params = + Collections.singletonMap("id", "1' UNION SELECT * FROM cars; --"); unionBasedSQLInjectionVulnerability.getCarInformationLevel2(params); // Assert @@ -63,7 +64,8 @@ void getCarInformationLevel2_ExpectParamInjected() throws IOException { @Test void getCarInformationLevel3_ExpectParamEscaped() throws IOException { // Act - final Map params = Collections.singletonMap("id", "1' UNION SELECT * FROM cars; --"); + final Map params = + Collections.singletonMap("id", "1' UNION SELECT * FROM cars; --"); unionBasedSQLInjectionVulnerability.getCarInformationLevel3(params); // Assert @@ -87,7 +89,8 @@ void getCarInformationLevel4_ExpecParamEscaped() throws IOException { unionBasedSQLInjectionVulnerability = new UnionBasedSQLInjectionVulnerability(template); // Act - final Map params = Collections.singletonMap("id", "1' UNION SELECT * FROM cars; --"); + final Map params = + Collections.singletonMap("id", "1' UNION SELECT * FROM cars; --"); unionBasedSQLInjectionVulnerability.getCarInformationLevel4(params); // Assert