Skip to content

Commit 8e6d120

Browse files
committed
required changes surfaced by PMD
1 parent 113f37c commit 8e6d120

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

openapi-validation-core/src/test/java/com/getyourguide/openapi/validation/core/OpenApiRequestValidatorTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void testWhenThreadPoolExecutorRejectsExecutionThenItShouldNotThrow() {
6464

6565
@Nested
6666
@DisplayName("validateRequestObject")
67-
class ValidateRequestObjectTests {
67+
public class ValidateRequestObjectTests {
6868

6969
@Test
7070
@DisplayName("When encoded query param is passed then validation should happen with query param decoded")
@@ -84,7 +84,6 @@ public void testWhenEncodedQueryParamIsPassedThenValidationShouldHappenWithQuery
8484
@Test
8585
@DisplayName("When violation is excluded then it should not be returned")
8686
public void testWhenViolationIsExcludedThenItShouldNotBeReturned() {
87-
;
8887
var validationReport = mock(ValidationReport.class);
8988
when(validator.validateRequest(any())).thenReturn(validationReport);
9089
var violationExcluded = mock(OpenApiViolation.class);
@@ -139,7 +138,7 @@ public void testWhenAllRequestViolationsAreIgnoredThenEmptyListIsReturned() {
139138

140139
@Nested
141140
@DisplayName("validateResponseObject")
142-
class ValidateResponseObjectTests {
141+
public class ValidateResponseObjectTests {
143142

144143
@Test
145144
@DisplayName("When violation has log level IGNORE then it should not be returned")

0 commit comments

Comments
 (0)