test
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页
摘要: JUnit为我们提供了一些辅助函数,他们用来帮助我们确定被测试的方法是否按照预期的效果正常工作,通常,把这些辅助函数称为断言。下面我们来介绍一下JUnit的各种断言。 1、assertEquals 函数原型1:assertEquals([String message],expected,act... 阅读全文
posted @ 2015-02-11 14:16 Lechance 阅读(1567) 评论(0) 推荐(0)
摘要: 说明:1.Bug是findbug Eclipse插件原生的bug信息描述,Confidence是fingbug团队认为该代码导致bug的可能性。 2.以下都是我使用findbug在公司项目中找到的一些bug,这里做一些中文的简短说明(不是翻译) 3.篇幅可能会有点长,阅读时,大家可以通过... 阅读全文
posted @ 2015-02-11 11:56 Lechance 阅读(1944) 评论(0) 推荐(0)
摘要: 下面这些术语都是指屏幕的分辨率。VGA:Video Graphics Array,即:显示绘图矩阵,相当于640×480 像素;HVGA:Half-size VGA,即:VGA的一半,分辨率为480×320,像三星盖世Ace S5830就是使用这分辨率;QVGA:Quarter VGA,即:VGA的... 阅读全文
posted @ 2015-02-11 09:51 Lechance 阅读(311) 评论(0) 推荐(0)
摘要: SQLite的数据库本质上来讲就是一个磁盘上的文件,所以一切的数据库操作其实都会转化为对文件的操作,而频繁的文件操作将会是一个很好时的过程,会极大地影响数据库存取的速度。例如:向数据库中插入100万条数据,在默认的情况下如果仅仅是执行sqlite3_exec(db, “insert into nam... 阅读全文
posted @ 2015-02-10 16:21 Lechance 阅读(199) 评论(0) 推荐(0)
摘要: findbugs警告26个。主要有以下9类问题。1、Bug: Hard coded reference to an absolute pathnameBUG描述:This code constructs a File object using a hard coded to an absolute ... 阅读全文
posted @ 2015-02-10 14:14 Lechance 阅读(676) 评论(0) 推荐(0)
摘要: 方法一:1.Eclipse中,选择Help->Software Updates->Find and Install2.选择 Search for new features to install 选择Next3.选择 New Remote Site4.输入更新地址http://eclipse-cs.s... 阅读全文
posted @ 2015-02-10 11:23 Lechance 阅读(195) 评论(0) 推荐(0)
摘要: importjava.util.Arrays;importjava.util.List;/****本类演示了Arrays类中的asList方法*通过四个段落来演示,体现出了该方法的相关特性.**(1)该方法对于基本数据类型的数组支持并不好,当数组是基本数据类型时不建议使用*(2)当使用asList(... 阅读全文
posted @ 2015-02-10 08:54 Lechance 阅读(236) 评论(0) 推荐(0)
摘要: LinkedList类是双向列表,列表中的每个节点都包含了对前一个和后一个元素的引用.LinkedList的构造函数如下1. public LinkedList(): ——生成空的链表2. public LinkedList(Collection col): 复制构造函数1、获取链表的第一个和最后一... 阅读全文
posted @ 2015-02-10 08:41 Lechance 阅读(562) 评论(0) 推荐(0)
摘要: 接口:Java代码packagecom.test;publicinterfaceFruit{}一个实现类:Java代码packagecom.test;publicclassAppleimplementsFruit{}基本测试类:Java代码packagecom.test;importjava.uti... 阅读全文
posted @ 2015-02-09 16:42 Lechance 阅读(2477) 评论(0) 推荐(0)
摘要: 方式一,Running services通过手机上Running services的Activity查看,可以通过Setting->Applications->Running services进。关于Running services的详细内容请参考《Android中使用"running servic... 阅读全文
posted @ 2015-02-09 14:42 Lechance 阅读(564) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 24 下一页