Add assertFileNotFound tag to assert taglib
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115594 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -331,6 +331,14 @@
|
||||
<ant:fail>${file} does not exist.${msg}</ant:fail>
|
||||
</j:if>
|
||||
</define:tag>
|
||||
<define:tag name="assertFileNotFound">
|
||||
<!-- @file : Full file path -->
|
||||
<!-- @msg : optional message to be displayed -->
|
||||
<u:file var="fileAsFile" name="${file}"/>
|
||||
<j:if test="${fileAsFile.exists()}">
|
||||
<ant:fail>${file} found and not expected.${msg}</ant:fail>
|
||||
</j:if>
|
||||
</define:tag>
|
||||
<define:tag name="assertEquals">
|
||||
<!-- @expected : the expected value -->
|
||||
<!-- @value : the actual value -->
|
||||
|
||||
Reference in New Issue
Block a user