@@ -106,7 +106,7 @@ void setUp() {
106
106
107
107
@ ParameterizedTest
108
108
@ ArgumentsSource (ResponseEventsArgumentsProvider .class )
109
- public void testValidateOutboundJsonSchemaWithExceptions (Object object ) throws Throwable {
109
+ void testValidateOutboundJsonSchemaWithExceptions (Object object ) throws Throwable {
110
110
when (validation .schemaVersion ()).thenReturn (SpecVersion .VersionFlag .V7 );
111
111
when (pjp .getSignature ()).thenReturn (signature );
112
112
when (pjp .getSignature ().getDeclaringType ()).thenReturn (RequestHandler .class );
@@ -124,7 +124,7 @@ public void testValidateOutboundJsonSchemaWithExceptions(Object object) throws T
124
124
125
125
@ ParameterizedTest
126
126
@ ArgumentsSource (HandledResponseEventsArgumentsProvider .class )
127
- public void testValidateOutboundJsonSchemaWithHandledExceptions (Object object ) throws Throwable {
127
+ void testValidateOutboundJsonSchemaWithHandledExceptions (Object object ) throws Throwable {
128
128
when (validation .schemaVersion ()).thenReturn (SpecVersion .VersionFlag .V7 );
129
129
when (pjp .getSignature ()).thenReturn (signature );
130
130
when (pjp .getSignature ().getDeclaringType ()).thenReturn (RequestHandler .class );
@@ -139,13 +139,13 @@ public void testValidateOutboundJsonSchemaWithHandledExceptions(Object object) t
139
139
if (response instanceof APIGatewayProxyResponseEvent ) {
140
140
assertThat (response ).isInstanceOfSatisfying (APIGatewayProxyResponseEvent .class , t -> {
141
141
assertThat (t .getStatusCode ()).isEqualTo (400 );
142
- assertThat (t .getBody ()).satisfies ( x -> StringUtils . isNotBlank (x ) );
142
+ assertThat (t .getBody ()).isNotBlank ();
143
143
assertThat (t .getIsBase64Encoded ()).isFalse ();
144
144
});
145
145
} else if (response instanceof APIGatewayV2HTTPResponse ) {
146
146
assertThat (response ).isInstanceOfSatisfying (APIGatewayV2HTTPResponse .class , t -> {
147
147
assertThat (t .getStatusCode ()).isEqualTo (400 );
148
- assertThat (t .getBody ()).satisfies ( x -> StringUtils . isNotBlank (x ) );
148
+ assertThat (t .getBody ()).isNotBlank ();
149
149
assertThat (t .getIsBase64Encoded ()).isFalse ();
150
150
});
151
151
} else {
@@ -199,7 +199,7 @@ public void validate_inputKO_schemaInClasspath_shouldThrowValidationException()
199
199
"}" );
200
200
// price is negative
201
201
APIGatewayProxyResponseEvent response = handler .handleRequest (event , context );
202
- assertThat (response .getBody ()).satisfies ( x -> StringUtils . isNotBlank (x ) );
202
+ assertThat (response .getBody ()).isNotBlank ();
203
203
assertThat (response .getStatusCode ()).isEqualTo (400 );
204
204
}
205
205
@@ -229,7 +229,7 @@ public void validate_inputKO_schemaInString_shouldThrowValidationException() {
229
229
"}" );
230
230
231
231
APIGatewayV2HTTPResponse response = handler .handleRequest (event , context );
232
- assertThat (response .getBody ()).satisfies ( x -> StringUtils . isNotBlank (x ) );
232
+ assertThat (response .getBody ()).isNotBlank ();
233
233
assertThat (response .getStatusCode ()).isEqualTo (400 );
234
234
}
235
235
0 commit comments