This commit is contained in:
Looly
2020-08-11 14:06:51 +08:00
parent 3774383e72
commit 279f056dc0
2 changed files with 5 additions and 6 deletions

View File

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