当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 磨蹭了很久,终于开始用UnitTest。
 

 

 ·fifo与lru 算法实现(java)    »显示摘要«
    摘要: /* * created on 2004-12-25 * * todo to change the template for this generated file go to * window - preferences - java - code style - code templates */ /** * @michelangelo * * todo to change the tem......
 ·简析java开发中的xml编程    »显示摘要«
    摘要: xml作为全球通用的结构化语言,越来越受人们青睐,各种开发平台(比如microsoft studio系列、oracle系列、inprise borland系列等)也都把支持xml开发作为宣传口号之一 。由于笔者所从事的电子政务开发较早的引入了xml,所以尝到了许多甜头,在许多项目中利用xml数据交换信息,省去了许多麻烦事,不用制定繁锁的数据格式,利用xml数据易于表达,也利于一线开发者跟踪调试。......


Spring--对业务层的UnitTest
       磨蹭了很久,终于开始用unittest.原因一是与大家一样,不想晚上做噩梦,二是在spring下对业务层tdd,能够不需要重启tomcat,能够完全摆脱对显示层的依赖,而专注于业务层的开发.

      但是我们也只在业务层使用unittest,因为显示层至今没有什么好的unittest方法,而我们的业务逻辑又严格封装在业务层,controler层只做个组装分派的基本动作,没必要花大力气去测试.

      源码如下:  【程序编程相关:J2ME学习之Nokia系列手机介绍—S

      在spring下的测试很简单,写一个父类执行applicationcontext的载入,并用dbunit负责测试前后的数据备份与恢复.而子类可以通过成员变量控制父类的行为. 【推荐阅读:struts与hibernate协同工作


...   下一页
    摘要: although the apache digester is popular today and also benefit us a lot, but sometimes we still need to validate or parse the xml base on the dtd, for the static validate/parse (most of the case, it......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE