首先安装Unit Test Generator。方法为:工具->扩展和更新->联机->搜索“图标为装有蓝色液体的小试管。Unit Test Generator”, 编写代码,生成一个新的类,编写构造函数 与 add()函数。代码如下。 在addTest()函数里编写测试代码,代码如下。 如此就完成了
分类:
移动开发 时间:
2016-03-21 22:53:32
阅读次数:
453
Tasks: 1. Install Junit(4.12), Hamcrest(1.3) with Eclipse 将两个jar包添加到工程中 2. Install Eclemma with Eclipse 3. Write a java program for the triangle probl
分类:
编程语言 时间:
2016-03-19 23:06:04
阅读次数:
695
SOFTWARE TEST LAB 软件测试实验 一、实验任务 利用Junit、Hamcrest及Eclemma进行软件测试。 具体任务(tasks): 二、实验步骤 1. 在Eclipse中安装Junit和Hamcrest两个外部jar文件 (1)在Eclipse窗口中选中project选项卡中的
分类:
其他好文 时间:
2016-03-19 14:39:59
阅读次数:
324
Tasks: 实验过程: 1. 从办公网上下载junit-4.12.jar和hamcrest-all-1.3.jar包,并通过build path导入。 2. 下载Eclemma并安装,Help —— Eclipse Marketplace —— 搜索Eclemma并安装。 3. 新建st工程文件,
分类:
其他好文 时间:
2016-03-18 13:24:53
阅读次数:
230
Tasks: 关于三角形问题的代码的链接如下: https://github.com/Cartisia/triangle 部分如下: 1、安装并运用junit, hamcrest and eclemma. 1)分别下载junit-4.12、hamcrest-all-1.3的jar包,可以存放在mye
分类:
编程语言 时间:
2016-03-18 13:14:17
阅读次数:
599
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; using System.Da
分类:
数据库 时间:
2016-03-17 14:34:15
阅读次数:
261
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace testSwith{ enum Operat { Add
拓扑排序,在每个没有访问过的点DFS。之后入栈。 为什么说是个烂题呢?题上没有说m的范围,所以m=0的时候不代表输入结束,不能写while (scanf()&&n&&m)。
分类:
其他好文 时间:
2016-03-15 00:32:30
阅读次数:
188
函数的调用 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace hanshu{ class Program
冒泡排序 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace shuzufuxi{ class Progra