Looly 5 年之前
父节点
当前提交
3774383e72
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 1 0
      CHANGELOG.md
  2. 8 0
      hutool-http/src/test/java/cn/hutool/http/test/HttpUtilTest.java

+ 1 - 0
CHANGELOG.md

@@ -19,6 +19,7 @@
 * 【core  】     CollUtil中部分方法返回null变更为返回empty
 * 【all   】     添加英文README(pr#153@Gitee)
 * 【extra 】     SpringUtil增加getBean(TypeReference)(pr#1009@Github)
+* 【core  】     Assert增加方法,支持自定义异常处理(pr#154@Gitee)
 
 ### Bug修复#
 * 【core  】     修复原始类型转换时,转换失败没有抛出异常的问题

+ 8 - 0
hutool-http/src/test/java/cn/hutool/http/test/HttpUtilTest.java

@@ -312,4 +312,12 @@ public class HttpUtilTest {
 		final String s = HttpUtil.get(url);
 		Console.log(s);
 	}
+
+	@Test
+	@Ignore
+	public void getNocovTest(){
+		String url = "https://qiniu.nocov.cn/medical-manage%2Ftest%2FBANNER_IMG%2F444004467954556928%2F1595215173047icon.png~imgReduce?e=1597081986&token=V2lJYVgQgAv_sbypfEZ0qpKs6TzD1q5JIDVr0Tw8:89cbBkLLwEc9JsMoCLkAEOu820E=";
+		final String s = HttpUtil.get(url);
+		Console.log(s);
+	}
 }