Looly 5 年之前
父节点
当前提交
f7dbb7ddbf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hutool-core/src/test/java/cn/hutool/core/lang/AssertTest.java

+ 1 - 1
hutool-core/src/test/java/cn/hutool/core/lang/AssertTest.java

@@ -21,7 +21,7 @@ public class AssertTest {
 		cn.hutool.core.lang.Assert.isTrue(i > 0, IllegalArgumentException::new);
 	}
 
-	@Test()
+	@Test(expected = IndexOutOfBoundsException.class)
 	public void isTrueTest2() {
 		int i = -1;
 		cn.hutool.core.lang.Assert.isTrue(i >= 0, IndexOutOfBoundsException::new);