03 2010 档案

单元测试(转)
摘要:一 单元测试概述  工厂在组装一台电视机之前,会对每个元件都进行测试,这,就是单元测试。  其实我们每天都在做单元测试。你写了一个函数,除了极简单的外,总是要执行一下,看看功能是否正常,有时还要想办法输出些数据,如弹出信息窗口什么的,这,也是单元测试,老纳把这种单元测试称为临时单元测试。只进行了临时单元测试的软件,针对代码的测试很不完整,代码覆盖率要超过70%都很困难,未覆盖的代码可能遗留大量的细... 阅读全文

posted @ 2010-03-23 10:37 ethanchan 阅读(233) 评论(0) 推荐(0)

spring事务管理
摘要:... 阅读全文

posted @ 2010-03-19 15:42 ethanchan 阅读(95) 评论(0) 推荐(0)

hibernate缓存使用
摘要:... 阅读全文

posted @ 2010-03-19 15:42 ethanchan 阅读(110) 评论(0) 推荐(0)

关于单例模式(sington)
摘要:... 阅读全文

posted @ 2010-03-19 15:40 ethanchan 阅读(133) 评论(0) 推荐(0)

关于策略模式(转)
摘要:Design Patterns书里的定义:Define a family of algorithms, encapsulate each one, and make them interchangeable. [The] Strategy [pattern] lets the algorithm vary independently from clients that use it . 策略模式(... 阅读全文

posted @ 2010-03-19 15:40 ethanchan 阅读(166) 评论(0) 推荐(0)

关于工厂模式
摘要:... 阅读全文

posted @ 2010-03-19 15:40 ethanchan 阅读(102) 评论(0) 推荐(0)

weblogic连接池的密码问题
摘要:最近,DBA对oracle测试库的密码加上了安全认证,原来的测试数据库密码和用户名是一样的,现在密码必须要修改(系统比较老,环境为:weblogic81+oracle 9. 用的是portal domain). 数据库改了密码后,服务就启动不起来了,这样就不能直接在console里面修改了,只有到config.xml文件中进行修改.在config.xml文件中的连接池的密码都是加密的,型如:Pas... 阅读全文

posted @ 2010-03-01 11:36 ethanchan 阅读(2291) 评论(0) 推荐(0)

导航