buildframework/helium/sf/java/antlint/tests/antunit/test_antlint.ant.xml
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 645 b8d81fa19e7d
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
   327                 <contains string="${report.xml}" substring="Project name not specified!" />
   327                 <contains string="${report.xml}" substring="Project name not specified!" />
   328             </and>
   328             </and>
   329         </au:assertTrue>
   329         </au:assertTrue>
   330     </target>
   330     </target>
   331     
   331     
   332     
   332     <target name="test-check-try-catch-block-with-empty-catch-block">
       
   333         <au:expectfailure>
       
   334             <hlm:antlint>
       
   335                 <fileset file="${antlint.test.dir}/data/sample.ant.xml"/>
       
   336                 <hlm:checkTryCatchBlock severity="error" />
       
   337             </hlm:antlint>
       
   338         </au:expectfailure>
       
   339         <au:assertLogContains text="trycatch> block found without " level="info"/>
       
   340     </target>
       
   341 
       
   342     <target name="test-check-try-catch-block-with-multiple-catch-block">
       
   343         <au:expectfailure>
       
   344             <hlm:antlint>
       
   345                 <fileset file="${antlint.test.dir}/data/sample.ant.xml"/>
       
   346                 <hlm:checkTryCatchBlock severity="error" />
       
   347             </hlm:antlint>
       
   348         </au:expectfailure>
       
   349         <au:assertLogContains text="trycatch> block found with 2 " level="info"/>
       
   350     </target>
   333 </project>
   351 </project>