Skip to content

Commit

Permalink
Minor post-merge cleanup wrt test for #422
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 6, 2025
1 parent da74291 commit 1acaa13
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,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 @@ -49,7 +48,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 1acaa13

Please sign in to comment.