Skip to content

Commit 6766e30

Browse files
committed
refactor: Use static import for assertThatThrownBy in FormUrlEncodedParserTest
1 parent bac0a68 commit 6766e30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/com/retailsvc/http/internal/FormUrlEncodedParserTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.retailsvc.http.internal;
22

33
import static org.assertj.core.api.Assertions.assertThat;
4+
import static org.assertj.core.api.Assertions.assertThatThrownBy;
45

56
import com.retailsvc.http.spec.schema.ArraySchema;
67
import com.retailsvc.http.spec.schema.IntegerSchema;
@@ -108,7 +109,7 @@ void coercionFailureThrowsValidationExceptionAtPropertyPointer() {
108109
IntegerSchema intSchema = anIntegerSchema();
109110
ObjectSchema bodySchema = anObjectSchema(Map.of("age", intSchema));
110111

111-
org.assertj.core.api.Assertions.assertThatThrownBy(
112+
assertThatThrownBy(
112113
() ->
113114
FormBodyCoercion.coerce(
114115
parser.parse("age=abc".getBytes(StandardCharsets.UTF_8), null), bodySchema))

0 commit comments

Comments
 (0)