随笔分类 -  随笔博客

Assert断言方法简述
摘要:Assert的可用方法 Jdk在1.4的时候,引入了assert关键字,这个assert关键字后面只可以接一个boolean类型,不为true的话,会抛出AssertionError(extends Error) junit扩展了它的方法,使得有一些更方便的API(抛出的异常跟上面的一致) Juni 阅读全文
posted @ 2022-11-09 15:58 wecantstop 阅读(327) 评论(0) 推荐(0)