Skip to content

Commit 7b8ee83

Browse files
committed
Add a failing test for #3262
1 parent ef38891 commit 7b8ee83

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.fasterxml.jackson.failing;
2+
3+
import java.time.LocalDateTime;
4+
5+
import com.fasterxml.jackson.databind.*;
6+
7+
// [databind#3262]: not sure what could be done here
8+
public class POJONode3262Test extends BaseMapTest
9+
{
10+
private final ObjectMapper MAPPER = newJsonMapper();
11+
12+
public void testAddJava8DateAsPojo() throws Exception
13+
{
14+
JsonNode node = MAPPER.createObjectNode().putPOJO("test", LocalDateTime.now());
15+
String json = node.toString();
16+
17+
assertNotNull(json);
18+
}
19+
}

0 commit comments

Comments
 (0)