This commit is contained in:
Looly
2020-08-16 12:04:05 +08:00
parent a444d00e98
commit f7dbb7ddbf

View File

@@ -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);