Skip to content

Commit

Permalink
Merge branch '2.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 6, 2025
2 parents b1c0bda + 1acaa13 commit 1be9994
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ static class Wrapper422 {
public void testEnumSchemaGeneration422() throws Exception
{
// First, failure due to invalid enum value (when generating as Enum)
AvroSchemaGenerator gen = new AvroSchemaGenerator()
.enableLogicalTypes();
AvroSchemaGenerator gen = new AvroSchemaGenerator();
try {
MAPPER.acceptJsonFormatVisitor(Wrapper422.class, gen);
fail("Expected failure");
Expand All @@ -50,7 +49,6 @@ public void testEnumSchemaGeneration422() throws Exception
// But then success when configuring to produce Strings for Enum types

gen = new AvroSchemaGenerator()
.enableLogicalTypes()
.enableWriteEnumAsString();
MAPPER.acceptJsonFormatVisitor(Wrapper422.class, gen);

Expand Down

0 comments on commit 1be9994

Please sign in to comment.