会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
咸鱼
做个有梦想的咸鱼
首页
管理
2016年7月28日
使用JUnit测试预期异常
摘要: Junit单测 1.被单测的类 /** * 被测试类 */ public class Student { public boolean canVote(int age) { if (age <= 0) throw new IllegalArgumentException("年龄必须大于0"); if
阅读全文
posted @ 2016-07-28 09:36 做个有梦想的咸鱼
阅读(1870)
评论(0)
推荐(0)
编辑