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

Commit

Permalink
Merge pull request #3667 from Certseeds/master
Browse files Browse the repository at this point in the history
fix testcase for issue#3361 which make CI error.
  • Loading branch information
wenshao authored Mar 7, 2021
2 parents 62787d9 + 7a79378 commit e4308b7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/test/java/com/alibaba/json/bvt/issue_3300/Issue3361.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@

@Slf4j
public class Issue3361 extends TestCase {
private static String ORIGIN_JSON_DEFAULT_DATE_FORMAT;

@Override
public void setUp() throws Exception {
ORIGIN_JSON_DEFAULT_DATE_FORMAT = JSON.DEFFAULT_DATE_FORMAT;
}

public void test_for_issue() throws Exception {
Model model = new Model();
model.setOldDate(new Date());
Expand All @@ -40,6 +47,10 @@ public void test_for_issue() throws Exception {
log.info("{}", model3);
}

@Override
public void tearDown() throws Exception {
JSON.DEFFAULT_DATE_FORMAT = ORIGIN_JSON_DEFAULT_DATE_FORMAT;
}

@Getter
@Setter
Expand Down

0 comments on commit e4308b7

Please sign in to comment.