--- a/buildframework/helium/sf/java/antlint/tests/antunit/test_antlint.ant.xml Wed Jun 16 16:51:40 2010 +0300
+++ b/buildframework/helium/sf/java/antlint/tests/antunit/test_antlint.ant.xml Fri Aug 13 14:59:05 2010 +0300
@@ -329,5 +329,23 @@
</au:assertTrue>
</target>
-
+ <target name="test-check-try-catch-block-with-empty-catch-block">
+ <au:expectfailure>
+ <hlm:antlint>
+ <fileset file="${antlint.test.dir}/data/sample.ant.xml"/>
+ <hlm:checkTryCatchBlock severity="error" />
+ </hlm:antlint>
+ </au:expectfailure>
+ <au:assertLogContains text="trycatch> block found without " level="info"/>
+ </target>
+
+ <target name="test-check-try-catch-block-with-multiple-catch-block">
+ <au:expectfailure>
+ <hlm:antlint>
+ <fileset file="${antlint.test.dir}/data/sample.ant.xml"/>
+ <hlm:checkTryCatchBlock severity="error" />
+ </hlm:antlint>
+ </au:expectfailure>
+ <au:assertLogContains text="trycatch> block found with 2 " level="info"/>
+ </target>
</project>