摘要:
7. Use the following method printPrimes() for questions a–d. – 基于Junit及Eclemma(jacoco)实现一个主路径覆盖的测试。 (a)控制流图 (b) 将MAXPRIMES设为4,这样t2=(n=5)就会出现数组越界的错误,但t 阅读全文
摘要:
Junit,hamcrest,eclemma单元测试基础(java) 1)安装junit, hamcrest 和 eclemma 1.1 安装juint,hamcrest 这两个的安装我使用了同一种方法,即导入jar包,在“项目”->“属性”当中选择java构建路径,导入外部提前下好的jar包,这里 阅读全文
摘要:
Below are two faulty programs. Each includes a test case that results in failure. Answer the following questions (in the next slide) about each progra 阅读全文