Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Oct 7, 2019
1 parent bf90b79 commit 0271ecc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/com/alibaba/json/bvt/issue_2700/Issue2784.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void test_for_issue_1() throws Exception {
+ "}", str);

Model m1 = JSON.parseObject(str, Model.class);
assertEquals(m.ztime, m1.ztime);
assertEquals(m.ztime.toInstant().toEpochMilli(), m1.ztime.toInstant().toEpochMilli());
}

public void test_for_issue_2() throws Exception {
Expand Down Expand Up @@ -81,8 +81,8 @@ public void test_for_issue_5() throws Exception {
+ "}", str);

Model m1 = JSON.parseObject(str, Model.class);
assertEquals(m.date1.getTime()
, m1.date1.getTime());
assertEquals(m.date1.getTime() / 1000
, m1.date1.getTime() / 1000);
}

public void test_for_issue_6() throws Exception {
Expand All @@ -94,8 +94,8 @@ public void test_for_issue_6() throws Exception {
+ "}", str);

Model m1 = JSON.parseObject(str, Model.class);
assertEquals(m.date1.getTime()
, m1.date1.getTime());
assertEquals(m.date1.getTime() / 1000
, m1.date1.getTime() / 1000);
}

public void test_for_issue_7() throws Exception {
Expand Down

0 comments on commit 0271ecc

Please sign in to comment.