Skip to content

Commit

Permalink
Fix 1 failing unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Feb 1, 2025
1 parent dbd6e54 commit e62fcd7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
public class IntervalSerializationTest extends JodaTestBase
{
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.WRAPPER_ARRAY, property = "@class")
private static interface ObjectConfiguration {
public static interface ObjectConfiguration {
}

static class FormattedInterval
public static class FormattedInterval
{
@JsonFormat(timezone="EST")
public Interval interval;
}

/*
/**********************************************************
/* Test methods
Expand Down Expand Up @@ -58,6 +58,7 @@ public void testIntervalSerWithTypeInfo() throws Exception
Interval interval = new Interval(1396439982, 1396440001);

ObjectMapper mapper = mapperWithModuleBuilder()
.enable(SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS)
.addMixIn(Interval.class, ObjectConfiguration.class)
.build();
assertEquals("[\"org.joda.time.Interval\"," + q("1396439982-1396440001") + "]",
Expand Down

0 comments on commit e62fcd7

Please sign in to comment.