Skip to content

Commit

Permalink
FIx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mukta13 authored and wenshao committed Nov 19, 2024
1 parent aaf9cbb commit 2a898e6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.annotation.JSONCompiled;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

import java.util.*;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class UtilTypeTest {
@BeforeAll
static void setUp() {
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
}

@Test
public void test() {
Bean bean = new Bean();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.noear.solon.test.SolonTest;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
Expand All @@ -26,7 +26,7 @@ public class QuickConfigTest {
public void hello2() throws Throwable {
UserDo userDo = new UserDo();

Map<String, Object> data = new HashMap<>();
Map<String, Object> data = new LinkedHashMap<>();
data.put("time", new Date(1673861993477L));
data.put("long", 12L);
data.put("int", 12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.noear.solon.test.SolonTest;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
Expand All @@ -26,7 +26,7 @@ public class QuickConfigTest {
public void hello2() throws Throwable {
UserDo userDo = new UserDo();

Map<String, Object> data = new HashMap<>();
Map<String, Object> data = new LinkedHashMap<>();
data.put("time", new Date(1673861993477L));
data.put("long", 12L);
data.put("int", 12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import org.noear.solon.test.SolonTest;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

/**
Expand All @@ -26,7 +26,7 @@ public class QuickConfigTest2 {
public void hello2() throws Throwable {
UserDo userDo = new UserDo();

Map<String, Object> data = new HashMap<>();
Map<String, Object> data = new LinkedHashMap<>();
data.put("time", new Date(1673861993477L));
data.put("long", 12L);
data.put("int", 12);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.noear.solon.test.SolonTest;

import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

Expand All @@ -28,7 +27,7 @@ public class QuickConfigTest {
public void hello2() throws Throwable {
UserDo userDo = new UserDo();

Map<String, Object> data = new HashMap<>();
Map<String, Object> data = new LinkedHashMap<>();
data.put("time", new Date(1673861993477L));
data.put("long", 12L);
data.put("int", 12);
Expand Down

0 comments on commit 2a898e6

Please sign in to comment.