This commit is contained in:
Looly
2022-09-05 02:37:04 +08:00
parent d033b1ec0f
commit 054f3fbf61
6 changed files with 17 additions and 66 deletions

View File

@@ -12,7 +12,7 @@ public class Issue2447Test {
Time time = new Time();
time.setTime(LocalDateTime.of(1970, 1, 2, 10, 0, 1, 0));
String timeStr = JSONUtil.toJsonStr(time);
Assert.assertEquals(timeStr, "{\"time\":93601000}");
Assert.assertEquals("{\"time\":93601000}", timeStr);
Assert.assertEquals(JSONUtil.toBean(timeStr, Time.class).getTime(), time.getTime());
}