mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix test
This commit is contained in:
parent
93dc246411
commit
c385affaa9
@ -20,7 +20,6 @@ import com.alibaba.fastjson2.JSON;
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.alibaba.fastjson2.JSONWriter;
|
||||
import com.alibaba.fastjson2.writer.ObjectWriter;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -52,7 +51,7 @@ public class FastJSONTest {
|
||||
|
||||
final JSONWriter.Context context = writer.getContext();
|
||||
final ObjectWriter<?> objectWriter = context.getObjectWriter(jsonObject.getClass());
|
||||
Console.log(objectWriter.getClass());
|
||||
//Console.log(objectWriter.getClass());
|
||||
|
||||
writer.close();
|
||||
}
|
||||
|
@ -23,7 +23,6 @@ import lombok.NoArgsConstructor;
|
||||
import org.dromara.hutool.core.date.DateTime;
|
||||
import org.dromara.hutool.core.date.DateUtil;
|
||||
import org.dromara.hutool.core.date.TimeUtil;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.text.StrUtil;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@ -148,7 +147,6 @@ public class JSONEngineTest {
|
||||
|
||||
final TestBean testBean = new TestBean("张三", 18, true);
|
||||
String jsonString = engine.toJsonString(testBean);
|
||||
Console.log(engineName);
|
||||
if("jackson".equals(engineName)){
|
||||
jsonString = jsonString.replace(" : ", ": ");
|
||||
// 使用统一换行符
|
||||
|
7
pom.xml
7
pom.xml
@ -57,7 +57,7 @@
|
||||
<compile.version>8</compile.version>
|
||||
<junit.version>5.11.1</junit.version>
|
||||
<lombok.version>1.18.34</lombok.version>
|
||||
<kotlin-version>1.9.25</kotlin-version>
|
||||
<kotlin-version>2.0.20</kotlin-version>
|
||||
<bouncycastle.version>1.78.1</bouncycastle.version>
|
||||
|
||||
<!-- version for json and jmh -->
|
||||
@ -191,7 +191,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>3.3.1</version>
|
||||
<version>3.5.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
@ -217,7 +217,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>3.8.0</version>
|
||||
<version>3.10.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
@ -286,6 +286,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-gpg-plugin</artifactId>
|
||||
<!-- 固定1.6,高版本签名失败 -->
|
||||
<version>1.6</version>
|
||||
<executions>
|
||||
<execution>
|
||||
|
Loading…
x
Reference in New Issue
Block a user