Looly 5 years ago
parent
commit
f7dbb7ddbf
1 changed files with 1 additions and 1 deletions
  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);
 		cn.hutool.core.lang.Assert.isTrue(i > 0, IllegalArgumentException::new);
 	}
 	}
 
 
-	@Test()
+	@Test(expected = IndexOutOfBoundsException.class)
 	public void isTrueTest2() {
 	public void isTrueTest2() {
 		int i = -1;
 		int i = -1;
 		cn.hutool.core.lang.Assert.isTrue(i >= 0, IndexOutOfBoundsException::new);
 		cn.hutool.core.lang.Assert.isTrue(i >= 0, IndexOutOfBoundsException::new);