Skip to content

Commit

Permalink
fix requireClassRegistration
Browse files Browse the repository at this point in the history
  • Loading branch information
chaokunyang committed Dec 3, 2024
1 parent e8ea9e8 commit 88561ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public void testThirdPartyBar() {
public void testFuryStruct() {
RestAssured.enableLoggingOfRequestAndResponseIfValidationFails();
Struct struct = Struct.create();
Fury fury = Fury.builder().requireClassRegistration(true).withName("Fury" + System.nanoTime()).build();
Fury fury = Fury.builder().requireClassRegistration(false).withName("Fury" + System.nanoTime()).build();
Response response = given().contentType("application/fury").body(fury.serialize(struct)).when()
.post("/fury/struct").then().statusCode(200).contentType("application/fury").extract().response();
byte[] result = response.body().asByteArray();
Expand Down

0 comments on commit 88561ce

Please sign in to comment.