mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
7.0.0.M1
This commit is contained in:
@@ -250,7 +250,7 @@ public class JSONArrayTest {
|
||||
assertEquals(3, jsonArray.size());
|
||||
}
|
||||
|
||||
// https://github.com/dromara/hutool/issues/1858
|
||||
// https://github.com/chinabugotech/hutool/issues/1858
|
||||
@Test
|
||||
public void putTest2() {
|
||||
final JSONArray jsonArray = new JSONArray();
|
||||
|
@@ -318,7 +318,7 @@ public class JSONUtilTest {
|
||||
|
||||
@Test
|
||||
public void sqlExceptionTest() {
|
||||
//https://github.com/dromara/hutool/issues/1399
|
||||
//https://github.com/chinabugotech/hutool/issues/1399
|
||||
// SQLException实现了Iterable接口,默认是遍历之,会栈溢出,修正后只返回string
|
||||
final JSONObject set = JSONUtil.ofObj().putValue("test", new SQLException("test"));
|
||||
assertEquals("{\"test\":\"java.sql.SQLException: test\"}", set.toString());
|
||||
|
@@ -43,7 +43,7 @@ public class JacksonTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/IB3GM4<br>
|
||||
* https://gitee.com/chinabugotech/hutool/issues/IB3GM4<br>
|
||||
* JSON和Jackson兼容
|
||||
*/
|
||||
@Test
|
||||
|
@@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test;
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* https://github.com/dromara/hutool/issues/1399<br>
|
||||
* https://github.com/chinabugotech/hutool/issues/1399<br>
|
||||
* Throwable的默认序列化策略
|
||||
*/
|
||||
public class Issue1399Test {
|
||||
|
@@ -27,7 +27,7 @@ import org.junit.jupiter.api.Test;
|
||||
import java.time.*;
|
||||
|
||||
/**
|
||||
* <a href="https://github.com/dromara/hutool/issues/2090">https://github.com/dromara/hutool/issues/2090</a>
|
||||
* <a href="https://github.com/chinabugotech/hutool/issues/2090">https://github.com/chinabugotech/hutool/issues/2090</a>
|
||||
*/
|
||||
public class Issue2090Test {
|
||||
|
||||
|
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* https://github.com/dromara/hutool/issues/2131<br>
|
||||
* https://github.com/chinabugotech/hutool/issues/2131<br>
|
||||
* 字段定义成final,意味着setCollections无效,因此JSON转Bean的时候无法调用setCollections注入,所以是空的。
|
||||
*/
|
||||
public class Issue2131Test {
|
||||
|
@@ -26,7 +26,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* https://github.com/dromara/hutool/issues/2749
|
||||
* https://github.com/chinabugotech/hutool/issues/2749
|
||||
* <p>
|
||||
* 由于使用了递归方式解析和写出,导致JSON太长的话容易栈溢出。
|
||||
*/
|
||||
|
@@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I49VZB
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I49VZB
|
||||
*/
|
||||
public class IssueI49VZBTest {
|
||||
public enum NBCloudKeyType {
|
||||
|
@@ -23,7 +23,7 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I4RBZ4
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I4RBZ4
|
||||
*/
|
||||
public class IssueI4RBZ4Test {
|
||||
|
||||
|
@@ -26,7 +26,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I4XFMW
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I4XFMW
|
||||
*/
|
||||
public class IssueI4XFMWTest {
|
||||
|
||||
|
@@ -22,7 +22,7 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I76CSU
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I76CSU
|
||||
*/
|
||||
public class IssueI76CSUTest {
|
||||
@Test
|
||||
|
@@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I7FQ29
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I7FQ29
|
||||
*/
|
||||
public class IssueI7FQ29Test {
|
||||
|
||||
|
@@ -30,7 +30,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I7M2GZ
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I7M2GZ
|
||||
*/
|
||||
public class IssueI7M2GZTest {
|
||||
|
||||
|
@@ -28,7 +28,7 @@ import org.junit.jupiter.api.Test;
|
||||
import java.security.KeyPair;
|
||||
|
||||
/**
|
||||
*https://github.com/dromara/hutool/issues/3205
|
||||
*https://github.com/chinabugotech/hutool/issues/3205
|
||||
*/
|
||||
public class Issue3205Test {
|
||||
@Test
|
||||
|
@@ -31,7 +31,7 @@ import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I6IS5B
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I6IS5B
|
||||
*/
|
||||
public class IssueI6IS5BTest {
|
||||
|
||||
|
@@ -22,7 +22,7 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* https://gitee.com/dromara/hutool/issues/I76TRQ
|
||||
* https://gitee.com/chinabugotech/hutool/issues/I76TRQ
|
||||
*/
|
||||
public class IssueI76TRQTest {
|
||||
@Test
|
||||
|
@@ -62,7 +62,7 @@ public class JWTUtilTest {
|
||||
@Test
|
||||
public void parseNullTest(){
|
||||
Assertions.assertThrows(IllegalArgumentException.class, ()->{
|
||||
// https://gitee.com/dromara/hutool/issues/I5OCQB
|
||||
// https://gitee.com/chinabugotech/hutool/issues/I5OCQB
|
||||
JWTUtil.parseToken(null);
|
||||
});
|
||||
}
|
||||
@@ -70,7 +70,7 @@ public class JWTUtilTest {
|
||||
@Test
|
||||
public void parseEmptyTest(){
|
||||
Assertions.assertThrows(IllegalArgumentException.class, ()->{
|
||||
// https://gitee.com/dromara/hutool/issues/I5OCQB
|
||||
// https://gitee.com/chinabugotech/hutool/issues/I5OCQB
|
||||
JWTUtil.parseToken("");
|
||||
});
|
||||
}
|
||||
@@ -78,7 +78,7 @@ public class JWTUtilTest {
|
||||
@Test
|
||||
public void parseBlankTest(){
|
||||
Assertions.assertThrows(IllegalArgumentException.class, ()->{
|
||||
// https://gitee.com/dromara/hutool/issues/I5OCQB
|
||||
// https://gitee.com/chinabugotech/hutool/issues/I5OCQB
|
||||
JWTUtil.parseToken(" ");
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user