Skip to content

Commit 368e18d

Browse files
committed
...
1 parent 0f4b10b commit 368e18d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/test/java/com/fasterxml/jackson/databind/deser/enums/EnumWithNullToString4355Test.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
package com.fasterxml.jackson.databind.deser.enums;
22

3+
import org.junit.jupiter.api.Test;
4+
35
import com.fasterxml.jackson.databind.*;
6+
import com.fasterxml.jackson.databind.testutil.DatabindTestUtil;
7+
8+
import static org.junit.jupiter.api.Assertions.assertEquals;
49

5-
public class EnumWithNullToString4355Test extends BaseMapTest
10+
public class EnumWithNullToString4355Test extends DatabindTestUtil
611
{
712
// [databind#4355]
813
enum Enum4355 {
@@ -25,8 +30,9 @@ public String toString() {
2530
private final ObjectMapper MAPPER = newJsonMapper();
2631

2732
// [databind#4355]
33+
@Test
2834
public void testWithNullToString() throws Exception
2935
{
30-
assertEquals("\"ALPHA\"", MAPPER.writeValueAsString(Enum4355.ALPHA));
36+
assertEquals(q("ALPHA"), MAPPER.writeValueAsString(Enum4355.ALPHA));
3137
}
3238
}

0 commit comments

Comments
 (0)