Use assert taglib for plugin tests

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2004-05-05 06:16:27 +00:00
1 parent eca727336d
commit 190f1a748c
2 files changed
+6 -9

No files matched your search

+5 -9
View File
@@ -15,7 +15,9 @@
* limitations under the License.
*/
-->
<project xmlns:j="jelly:core" xmlns:u="jelly:util">
<project xmlns:j="jelly:core"
xmlns:assert="assert"
xmlns:u="jelly:util">
<goal name="testPlugin" prereqs="test-eclipse">
</goal>
@@ -25,14 +27,8 @@
<delete file="${basedir}/.classpath" failonerror="false"/>
<attainGoal name="eclipse"/>
<u:file var="expectedFile" name="${basedir}/.project"/>
<j:if test="${!expectedFile.exists()}">
<fail>${expectedFile} was not created</fail>
</j:if>
<assert:assertFileExists file="${basedir}/.project" />
<assert:assertFileExists file="${basedir}/.classpath" />
<u:file var="expectedFile" name="${basedir}/.classpath"/>
<j:if test="${!expectedFile.exists()}">
<fail>${expectedFile} was not created</fail>
</j:if>
</goal>
</project>