摘要: (1)被测项目界面。 (2)测试用例设计表 设计表过程 a.等价类 输入 有效等价类 无效等价类 年 大于等于1912并小于等于2050的闰年(1) 小于1912(12) 大于等于1912并小于等于2050的非闰年(2) 大于2050(13) 非数字(14) 月 4,6,9,11(3) 小于1(15 阅读全文
posted @ 2017-05-09 13:58 阡烨 阅读(315) 评论(0) 推荐(0) 编辑
摘要: char -128 ~ +127 (1 Byte)short -32767 ~ + 32768 (2 Bytes)unsigned short 0 ~ 65536 (2 Bytes)int -2147483648 ~ +2147483647 (4 Bytes)32位unsigned int 0 ~ 阅读全文
posted @ 2017-05-09 13:42 阡烨 阅读(180) 评论(0) 推荐(0) 编辑
摘要: * float a = 123.2334f; float b = (float)(Math.round(a*1000))/1000; System.out.println(b);//123.23 (这里的100就是2位小数点,如果要其它位,如4位,这里两个100改成10000) * float f 阅读全文
posted @ 2017-05-09 13:33 阡烨 阅读(15229) 评论(0) 推荐(0) 编辑
摘要: 总体思路是先打成jar再把jar打成exe。使用了1.2与2.3没有问题成功完成。1.将项目打成jar: 1.1 要将项目打包成jar文件,方法很多,可以用Eclipse自带的打包工具Ant打包,也可以用Eclipse的Export生成jar。经过尝试后,我 不推荐用Ant打包,因为要自己编写xml 阅读全文
posted @ 2017-05-09 12:48 阡烨 阅读(3304) 评论(0) 推荐(0) 编辑