??xml version="1.0" encoding="utf-8" standalone="yes"?>成人av毛片,精品999久久久,综合精品久久http://www.aygfsteel.com/pengpenglin/category/28490.html成熟 E重 乐观 自信 q取 责Q 梦想 坚持zh-cnWed, 07 Apr 2010 07:47:35 GMTWed, 07 Apr 2010 07:47:35 GMT60【推荐】一Ƒ֥用的Java反编译工Pjd-guihttp://www.aygfsteel.com/pengpenglin/archive/2010/04/07/317622.htmlPaul LinPaul LinWed, 07 Apr 2010 03:10:00 GMThttp://www.aygfsteel.com/pengpenglin/archive/2010/04/07/317622.htmlhttp://www.aygfsteel.com/pengpenglin/comments/317622.htmlhttp://www.aygfsteel.com/pengpenglin/archive/2010/04/07/317622.html#Feedback0http://www.aygfsteel.com/pengpenglin/comments/commentRss/317622.htmlhttp://www.aygfsteel.com/pengpenglin/services/trackbacks/317622.html
而且q是一个绿色YӞ不需要Q何的安装Q双击exe文gq行卛_。卸载时只需要把exe和cfg文g删除卛_?nbsp; 阅读全文

Paul Lin 2010-04-07 11:10 发表评论
]]>
【摘自良葛格的笔记】Ant和JUnitl合q行自动试入门http://www.aygfsteel.com/pengpenglin/archive/2008/04/21/194519.htmlPaul LinPaul LinMon, 21 Apr 2008 07:21:00 GMThttp://www.aygfsteel.com/pengpenglin/archive/2008/04/21/194519.htmlhttp://www.aygfsteel.com/pengpenglin/comments/194519.htmlhttp://www.aygfsteel.com/pengpenglin/archive/2008/04/21/194519.html#Feedback0http://www.aygfsteel.com/pengpenglin/comments/commentRss/194519.htmlhttp://www.aygfsteel.com/pengpenglin/services/trackbacks/194519.html<project name="autobuildtest" default="test">    
    
<target name="setProperties">

        
<property name="src.dir" value="src"/>
        
<property name="classes.dir" value="classes"/>
       
</target>
    
    
<target name="prepareDir" depends="setProperties">
        
<delete dir="${classes.dir}"/>
        
<mkdir dir="${classes.dir}"/>
    
</target>
    
    
    
<target name="compile" depends="prepareDir">
        
<javac srcdir="./src" destdir="${classes.dir}"/>     
    
</target>

    
    
<target name="test" depends="compile">
        
<junit printsummary="yes">
            
<test name="onlyfun.caterpillar.test.MathToolTest"/>
          
<classpath>
              <pathelement location="${classes.dir}"/>
          </classpath>
        
</junit>
    
</target> 
</project>
 

上面XML文g高亮处描qCAnt如何与JUnitl合q行自动化测试,name属性是你要试的TestCaseQclasspath元素指明了TestCase的\径,printsummary说明了要测试的l果单的昄出来?br style="font-family: " />
如何吧JUnit试的详l信息显C出来呢Q我们可以采?lt;formatter>元素Q如下所C:

<junit printsummary="yes">

    
<formatter type="plain" usefile="false"/>

    
<test name="onlyfun.caterpillar.test.MathToolTest"/>
      
<classpath>
        
<pathelement location="${classes.dir}"/>
      
</classpath>         
</junit>

当usefile属性设定ؓtrueӞ会自动帮您将产生的结果储存在档案中,预设是TEST-*.txtQ其?是您的测试案例类别名U。除此之外,我们也可用采用XML的格式来保存试l果。如下所C:

<formatter type="xml"/>

也可以将试l果所产生的XML文g转换为HTML文gQ用Ant可以直接帮您完成q个工作Q?lt;junitreport>标签使用 XSLTXML文g转换为HTML文g

<project name="autobuildtest" default="report">

    
<target name="setProperties">
        
<property name="src.dir" value="src"/>
        
<property name="classes.dir" value="classes"/>
        
<property name="report.dir" value="report"/>    
    
</target>
    
    
<target name="prepareDir" depends="setProperties">
        
<delete dir="${report.dir}"/>
        
<delete dir="${classes.dir}"/>
        
<mkdir dir="${report.dir}"/>
        
<mkdir dir="${classes.dir}"/>
    
</target>

    
<target name="compile" depends="prepareDir">
        
<javac srcdir="./src" destdir="${classes.dir}"/>
    
</target>
    
    
<target name="test" depends="compile">
        
<junit printsummary="yes">
            
<formatter type="xml"/>
            
<test name="onlyfun.caterpillar.test.MathToolTest"
                    todir="${report.dir}"
/>
            
<classpath>
                
<pathelement location="${classes.dir}"/>
            
</classpath>
        
</junit>
    
</target>

    
<target name="report" depends="test">
        
<junitreport todir="${report.dir}">
        
<fileset dir="${report.dir}">
            
<include name="TEST-*.xml"/>
        
</fileset>
        
<report format="frames" todir="${report.dir}/html"/>
    </junitreport>
    
</target> 
</project>

上面的例子,首先定义了一个propertyQ用于指向保存测试结果的目录Q接着?lt;test>元素中通过<todir>结果指向该目录。然后report目标首先在todir属性指定的目录下查扑֐U包含:TESTd的XML文gQ找C后通过XSL转换成带frame的HTML面Q存攑ֈ子目录html下面

最l的l果可能如下Q?br />




Paul Lin 2008-04-21 15:21 发表评论
]]>
Ant中关于\径指定的两个Tipshttp://www.aygfsteel.com/pengpenglin/archive/2008/04/21/194509.htmlPaul LinPaul LinMon, 21 Apr 2008 06:28:00 GMThttp://www.aygfsteel.com/pengpenglin/archive/2008/04/21/194509.htmlhttp://www.aygfsteel.com/pengpenglin/comments/194509.htmlhttp://www.aygfsteel.com/pengpenglin/archive/2008/04/21/194509.html#Feedback0http://www.aygfsteel.com/pengpenglin/comments/commentRss/194509.htmlhttp://www.aygfsteel.com/pengpenglin/services/trackbacks/194509.html?】path和location属性的区别Q?br />  
<classpath>
    <pathelement path="${classpath}"/>
     <pathelement location="lib/helper.jar"/>
</classpath>
 
原文QThe location attribute specifies a single file or directory relative to the project's base directory (or an absolute filename), while the path attribute accepts colon- or semicolon-separated lists of locations. The path attribute is intended to be used with predefined paths - in any other case, multiple
elements with location attributes should be preferred.
 
从中我们可以看出path可以用于指向存在多个文g的位|,而location只能指向单个的文件或目录。另外path可以被设定idQ供其它的path或classpath引用。如Q?lt;path id="main-classpath">Q而classpath则没?/span>

?】综合示例:
In addition, DirSets, FileSets, and FileLists can be specified via nested <dirset>, <fileset>, and <filelist> elements, respectively. Note: The order in which the files building up a FileSet are added to the path-like structure is not defined.
 
    <classpath>
      <pathelement path="${classpath}"/方式?Q引用特定的变量

      <fileset dir="lib"方式?Q指向特定的文g?/strong>
        <include name="**/*.jar"/>
      </fileset>

      <pathelement location="classes"/方式③:指向单个目录

      <dirset dir="${build.dir}"方式④:指向特定目录?/strong>
        <include name="apps/**/classes"/>
        <exclude name="apps/**/*Test*"/>
      </dirset>

      <filelist refid="third-party_jars"/> 方式⑤:引用指定文g列表
    </classpath>
 
This builds a path that holds the value of ${classpath}, followed by all jar files in the lib directory, the classes directory, all directories named classes under the apps subdirectory of ${build.dir}, except those that have the text Test in their name, and the files specified in the referenced FileList.



Paul Lin 2008-04-21 14:28 发表评论
]]>
使用Ant理HSQLDB的小脚本http://www.aygfsteel.com/pengpenglin/archive/2008/02/24/181841.htmlPaul LinPaul LinSun, 24 Feb 2008 14:40:00 GMThttp://www.aygfsteel.com/pengpenglin/archive/2008/02/24/181841.htmlhttp://www.aygfsteel.com/pengpenglin/comments/181841.htmlhttp://www.aygfsteel.com/pengpenglin/archive/2008/02/24/181841.html#Feedback3http://www.aygfsteel.com/pengpenglin/comments/commentRss/181841.htmlhttp://www.aygfsteel.com/pengpenglin/services/trackbacks/181841.html阅读全文

Paul Lin 2008-02-24 22:40 发表评论
]]>
TDD与Junit的一点偶?/title><link>http://www.aygfsteel.com/pengpenglin/archive/2008/01/29/178335.html</link><dc:creator>Paul Lin</dc:creator><author>Paul Lin</author><pubDate>Tue, 29 Jan 2008 03:36:00 GMT</pubDate><guid>http://www.aygfsteel.com/pengpenglin/archive/2008/01/29/178335.html</guid><wfw:comment>http://www.aygfsteel.com/pengpenglin/comments/178335.html</wfw:comment><comments>http://www.aygfsteel.com/pengpenglin/archive/2008/01/29/178335.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/pengpenglin/comments/commentRss/178335.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/pengpenglin/services/trackbacks/178335.html</trackback:ping><description><![CDATA[<p style="font-size: 10pt; font-family: Verdana">׃敏捷开发的行QTDD的概念近q来在国内被炒得很火Q似乎TDD是一个深不可的东西?br /> <br /> 今天在看TDD的文章时Q突然有了一个感觉:其实TDD的思想本来很朴实Q反而是我们开发h员一开始就背离了正的路线和方法?br /> <br /> 众所周知QTDD鼓励Z在编写实际的实现代码之前Q就先写好测试代码。这一点对大多数程序员来说难以接受Q总觉得实C码都没有写,怎么写测试代码啊。其实我觉得q主要是观念上的误区和行为的惯性所致?br /> <br /> 我们知道Q开发商盖楼盘时都有一个徏{标准,而业L楼时也有一个收楼标准。这些标准都是在实际的工E开工之前或业主正式入住之前已l制定好的。正规的开发商会在建筑的过E中严格按照建筑标准来衡量自q楼盘质量。看到有不符合要求的马上改正。而不是事先不考虑M的徏{或验收标准Q等到整个楼盘盖好后再来?br /> <br /> q个道理和TDD是一LQ在M工作开始之前,我们都应该先明确制定工作交付的标准。这一点在需求分析文中已经明确体现出来了。到了实际编码阶D却反而变成相反了。没有了事实的验收标准,q于没有了目标Q连自己要做成什么模样都不知道,才会出现在联调阶D出C多的bug而导致返工的情况Q另一斚w׃没有了验收标准,开发h员经怼出现不知道接口如何设计的困惑?br /> <br /> TDD是要求我们在编码阶D先制定验收标准Q再Ҏ标准来开发。TDD的过E就是根据验收标准不断调整优化的q程Q确保你始终沿着预定的目标前q,不会到最后变成一“豆腐渣工E?#8221;?br /> <br /> 同时ZW合试E序的要求,您的单元必须设计得可以测试,q迫使您设计E序Ӟ考虑到单元的低耦合?<br /> <br /> <br /> 很多时候技术的思想都很朴实Q就像OOP那样Q其实OOP本来来自于日常生活Q虽然说做了高层的抽象,但始l可以通过和现实的cL来看到其本质?/p> <img src ="http://www.aygfsteel.com/pengpenglin/aggbug/178335.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/pengpenglin/" target="_blank">Paul Lin</a> 2008-01-29 11:36 <a href="http://www.aygfsteel.com/pengpenglin/archive/2008/01/29/178335.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> վ֩ģ壺 <a href="http://" target="_blank">ʯ</a>| <a href="http://" target="_blank">ʼ</a>| <a href="http://" target="_blank">˫</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank">ˮ</a>| <a href="http://" target="_blank">׶</a>| <a href="http://" target="_blank">⿪</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ҳ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ͭϿ</a>| <a href="http://" target="_blank">Ȫ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">˳ƽ</a>| <a href="http://" target="_blank">ɽ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ʡ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank">ǿ</a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <a href="http://" target="_blank"></a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>