首页 | 官方网站   微博 | 高级检索  
     

J2ME单元测试及其在类库开发中的应用
引用本文:谢丹铭,徐中礼,高传善.J2ME单元测试及其在类库开发中的应用[J].计算机工程与应用,2006,42(8):79-81.
作者姓名:谢丹铭  徐中礼  高传善
作者单位:复旦大学计算机科学与工程系,上海,200433
基金项目:Intel公司资助项目
摘    要:J2MEUnit是J2ME类库中为对J2ME程序进行单元测试而构造的框架。它以J2SE类库中的成功的单元测试框架JUnit的源码为基础,加入很多新的特征而形成的。文章主要讨论的是J2MEUnit测试用例的开发方法及其在开发MIDP(移动信息设备简表)中的应用。文中分析了J2MEUnit和JUnit框架的差别,阐述了J2MEUnit在没有ReflectionAPI的情况下TestCase和TestSuite的构造。并介绍了如何用它来测试MIDP类库以及测试的原则。

关 键 词:J2MEUnit  MIDP  Reflection  test
文章编号:1002-8331-(2006)08-0079-03
收稿时间:2005-08
修稿时间:2005-08

J2ME Unit Testing and its Application in Developing Class Library
Xie Danming,Xu Zhongli,Gao Chuanshan.J2ME Unit Testing and its Application in Developing Class Library[J].Computer Engineering and Applications,2006,42(8):79-81.
Authors:Xie Danming  Xu Zhongli  Gao Chuanshan
Affiliation:Computer Science and Engineering Department,Fudan University,Shanghai 200433
Abstract:J2MEUnit is a J2ME library containing a unit testing framework for J2ME programs.It is based on the source code of the original JUnit,the successful unit testing framework for J2SE,and a lot of new features have been added.In this paper,we are mainly discussing how to develop a J2MEUnit testcase and its application in developing MIDP (Mobile Information Device Profile).We'll analyze the differences between J2MEUnit and JUnit frameworks and implement TestCae and TestSuite construction without reflection APIs.We'll still introduce how to test MIDP class library and some principles.
Keywords:J2MEUnit  MIDP  Reflection  test
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号