From 15d23d8118c272b580b49652be58bf821ef462fa Mon Sep 17 00:00:00 2001 From: Sam Bishop Date: Thu, 25 Jul 2024 10:56:06 -0400 Subject: [PATCH] removing public modifiers from junit5 tests where applicable --- src/test/java/emissary/core/SafeUsageCheckerTest.java | 2 +- src/test/java/emissary/parser/InputSessionTest.java | 2 +- src/test/java/emissary/pool/AgentPoolTest.java | 2 +- src/test/java/emissary/test/core/junit5/LogbackTesterTest.java | 2 +- src/test/java/emissary/transform/JavascriptEscapePlaceTest.java | 2 +- src/test/java/emissary/transform/JsonEscapePlaceTest.java | 2 +- src/test/java/emissary/util/DateTimeFormatParserTest.java | 2 +- src/test/java/emissary/util/PayloadUtilTest.java | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/java/emissary/core/SafeUsageCheckerTest.java b/src/test/java/emissary/core/SafeUsageCheckerTest.java index 7770d602f7..2fb71a0d37 100644 --- a/src/test/java/emissary/core/SafeUsageCheckerTest.java +++ b/src/test/java/emissary/core/SafeUsageCheckerTest.java @@ -13,7 +13,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -public class SafeUsageCheckerTest extends UnitTest { +class SafeUsageCheckerTest extends UnitTest { @Test void testDifferentConfigs() { assertTrue(SafeUsageChecker.ENABLED_FROM_CONFIGURATION, "Enabled from config file should be true"); diff --git a/src/test/java/emissary/parser/InputSessionTest.java b/src/test/java/emissary/parser/InputSessionTest.java index fe0021b580..50f45defc8 100755 --- a/src/test/java/emissary/parser/InputSessionTest.java +++ b/src/test/java/emissary/parser/InputSessionTest.java @@ -11,7 +11,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -public class InputSessionTest extends UnitTest { +class InputSessionTest extends UnitTest { @Test void testRecordCounting() throws ParserException { diff --git a/src/test/java/emissary/pool/AgentPoolTest.java b/src/test/java/emissary/pool/AgentPoolTest.java index 96b0ac97d5..3ef130671c 100644 --- a/src/test/java/emissary/pool/AgentPoolTest.java +++ b/src/test/java/emissary/pool/AgentPoolTest.java @@ -12,7 +12,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; -public class AgentPoolTest extends UnitTest { +class AgentPoolTest extends UnitTest { public static Stream poolSizeVales() { return Stream.of( diff --git a/src/test/java/emissary/test/core/junit5/LogbackTesterTest.java b/src/test/java/emissary/test/core/junit5/LogbackTesterTest.java index b99646ef1d..8592a5ba41 100644 --- a/src/test/java/emissary/test/core/junit5/LogbackTesterTest.java +++ b/src/test/java/emissary/test/core/junit5/LogbackTesterTest.java @@ -14,7 +14,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -public class LogbackTesterTest extends UnitTest { +class LogbackTesterTest extends UnitTest { protected Logger logger = LoggerFactory.getLogger("TESTY"); @Test diff --git a/src/test/java/emissary/transform/JavascriptEscapePlaceTest.java b/src/test/java/emissary/transform/JavascriptEscapePlaceTest.java index 821e251ba4..e5d9c21eff 100644 --- a/src/test/java/emissary/transform/JavascriptEscapePlaceTest.java +++ b/src/test/java/emissary/transform/JavascriptEscapePlaceTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.util.stream.Stream; -public class JavascriptEscapePlaceTest extends ExtractionTest { +class JavascriptEscapePlaceTest extends ExtractionTest { public static Stream data() { return getMyTestParameterFiles(JavascriptEscapePlaceTest.class); diff --git a/src/test/java/emissary/transform/JsonEscapePlaceTest.java b/src/test/java/emissary/transform/JsonEscapePlaceTest.java index 0f652b4341..2da1dd4d0c 100644 --- a/src/test/java/emissary/transform/JsonEscapePlaceTest.java +++ b/src/test/java/emissary/transform/JsonEscapePlaceTest.java @@ -8,7 +8,7 @@ import java.io.IOException; import java.util.stream.Stream; -public class JsonEscapePlaceTest extends ExtractionTest { +class JsonEscapePlaceTest extends ExtractionTest { public static Stream data() { return getMyTestParameterFiles(JsonEscapePlaceTest.class); diff --git a/src/test/java/emissary/util/DateTimeFormatParserTest.java b/src/test/java/emissary/util/DateTimeFormatParserTest.java index 1a71ba86ea..94bd6914fd 100644 --- a/src/test/java/emissary/util/DateTimeFormatParserTest.java +++ b/src/test/java/emissary/util/DateTimeFormatParserTest.java @@ -12,7 +12,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; -public class DateTimeFormatParserTest extends UnitTest { +class DateTimeFormatParserTest extends UnitTest { private static final long EXPECTED_FULL = 1451931630; // 2016-01-04 18:20:30 private static final long EXPECTED_NO_TIME = 1451865600; // 2016-01-04 00:00:00 diff --git a/src/test/java/emissary/util/PayloadUtilTest.java b/src/test/java/emissary/util/PayloadUtilTest.java index 237a7dfe26..efe56020d2 100644 --- a/src/test/java/emissary/util/PayloadUtilTest.java +++ b/src/test/java/emissary/util/PayloadUtilTest.java @@ -22,7 +22,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; -public class PayloadUtilTest extends UnitTest { +class PayloadUtilTest extends UnitTest { private static String timezone = "GMT"; private static final String validFormCharsString = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-)(/+";