当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 近来在学习使用 Junit test framwork .ZE
 

 

    摘要: [http://www.javaalmanac.com] - java开发者年鉴一书的在线版本. 要想快速查到某种java技巧的用法及示例代码, 这是一个不错的去处. [http://www.onjava.com] - oreilly的java网站. 每周都有新文章. [http://java.sun.com] - 官方的java开发者网站 - 每周都有新文章发表. [http://www.de......
 ·jetspeed模块定制    »显示摘要«
    摘要: 创建jetspeed新模块可以不用写配置文件,只需要用系统提管的功能就可以实现添加模块的全过程    1,添加一个简单的模块的全过程: (1)写好一个portlet:test.vm内容为:this is my test (2)以系统管理员登入jetspeed,帐号admin,jetspeed (3)点击admin菜单 -->选择portlet browser -->查看portlet......


使用Junit时源代码和测试代码的组织
近来在学习使用 junit test framwork .关于源代码与测试代码的组织问题我看了一些资料.其中有这样的建议:    1. create test cases in the same package as the code under test. for example, the com.mydotcom.ecommerce package would contain all the application-level classes as well as the test cases for those components.

2.to avoid combining application and testing code in your source directories, create a mirrored directory structure aligned with the package structure that contains the test code.

【程序编程相关:用FILTER解决中文乱码

【推荐阅读:对极限编程四个核心的理解(二)

(http://www.clarkware.com/articles/junitprimer.html)

【扩展信息:java.net.ConnectExce

就是说测试代码应该被测试代码放在同一个package中,但是测试代码放在一个独立的目录中.也就是组织成下面这样:


...   下一页
    摘要: <form-beans>元素<form-beans>元素用来配置多个actionform bean。<form-beans>元素包含零个,一个或多个<form-bean>子元素。每个<form-bean>又包含多个属性:属性描述classname指定和<form-bean>元素对应的配置类,默认值为org.apache.st......
» 本期热门文章:

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