摘要: 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) 编辑