Skip to content

Commit

Permalink
Unit test method updated
Browse files Browse the repository at this point in the history
to testGenericWrapperWithBoundDeserialization
  • Loading branch information
msevcenko authored Dec 7, 2023
1 parent 266043a commit 7ba5de1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public T getFoo() {
}

@Test
public void testSubClassSerialization() {
public void testGenericWrapperWithBoundDeserialization() {
BarDynamic<Foo> bar = new BarDynamic<>(new Foo("foo!"));
assertThat(gson.toJson(bar)).isEqualTo("{\"foo\":{\"text\":\"foo!\"}}");
// without #2563 fix, this would deserialize foo as Object and fails to assign it to foo field
Expand Down

0 comments on commit 7ba5de1

Please sign in to comment.