Skip to content

Commit

Permalink
removing public modifiers from junit5 tests where applicable (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
sambish5 authored Jul 30, 2024
1 parent 5408d61 commit 5f6db5e
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/test/java/emissary/core/SafeUsageCheckerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/emissary/core/TransformHistoryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertTrue;

public class TransformHistoryTest extends UnitTest {
class TransformHistoryTest extends UnitTest {

@Test
void testSet() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/emissary/parser/InputSessionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/emissary/pool/AgentPoolTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arguments> poolSizeVales() {
return Stream.of(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
@SuppressWarnings("HidingField")
protected Logger logger = LoggerFactory.getLogger("TESTY");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<? extends Arguments> data() {
return getMyTestParameterFiles(JavascriptEscapePlaceTest.class);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/emissary/transform/JsonEscapePlaceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<? extends Arguments> data() {
return getMyTestParameterFiles(JsonEscapePlaceTest.class);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/emissary/util/DateTimeFormatParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/emissary/util/PayloadUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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_-)(/+";
Expand Down

0 comments on commit 5f6db5e

Please sign in to comment.