Skip to content

Commit

Permalink
make test better match issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Oct 9, 2024
1 parent 1519b0a commit d115ebb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ static class NonDefaultBean4741 {
public String getValue() {
return value;
}

public void setValue(String value) {
this.value = value;
}
}

static class NonEmptyString {
Expand Down Expand Up @@ -332,7 +336,8 @@ public void testSerialization4741() throws Exception
{
ObjectMapper mapper = new ObjectMapper();
NonDefaultBean4741 bean = new NonDefaultBean4741();
assertEquals("{}", mapper.writeValueAsString(bean));
bean.setValue("");
assertEquals(a2q("{'value':''}"), mapper.writeValueAsString(bean));
}

// [databind#1550]
Expand Down

0 comments on commit d115ebb

Please sign in to comment.