Use assert taglib in plugin test

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115595 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2004-06-29 11:56:33 +00:00
parent 77f60e348d
commit 5f365a9398
5 changed files with 14 additions and 32 deletions

View File

@ -17,7 +17,8 @@
-->
<project xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:deploy="deploy">
xmlns:deploy="deploy"
xmlns:assert="assert">
<goal name="testPlugin" prereqs="clean,test-deploy">
<attainGoal name="clean"/>
@ -29,18 +30,8 @@
excludes="commons-logging" />
<!-- check that an exclude with just id works -->
<j:set var="unExpectedFile"
value="${maven.build.dir}/commons-logging-1.0.3.jar"/>
<u:file var="file" name="${unExpectedFile}" />
<j:if test="${(file.exists())}">
<fail>${unExpectedFile} should not have been copied</fail>
</j:if>
<j:set var="expectedFile"
value="${maven.build.dir}/commons-lang-2.0.jar"/>
<u:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} should have been copied</fail>
</j:if>
<assert:assertFileNotFound file="${maven.build.dir}/commons-logging-1.0.3.jar"/>
<assert:assertFileExists file="${maven.build.dir}/commons-lang-2.0.jar"/>
<attainGoal name="clean"/>
@ -48,18 +39,8 @@
<deploy:copy-deps
todir="${maven.build.dir}"
excludes="commons-lang:commons-lang" />
<j:set var="unExpectedFile"
value="${maven.build.dir}/commons-lang-2.0.jar"/>
<u:file var="file" name="${unExpectedFile}" />
<j:if test="${(file.exists())}">
<fail>${unExpectedFile} should not have been copied</fail>
</j:if>
<j:set var="expectedFile"
value="${maven.build.dir}/commons-logging-1.0.3.jar"/>
<u:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} should have been copied</fail>
</j:if>
<assert:assertFileNotFound file="${maven.build.dir}/commons-lang-2.0.jar"/>
<assert:assertFileExists file="${maven.build.dir}/commons-logging-1.0.3.jar"/>
</goal>
</project>

View File

@ -26,6 +26,7 @@
</properties>
<body>
<release version="1.4-SNAPSHOT" date="in CVS">
<action dev="dion" type="update">Use assertFileExists in tests</action>
<action dev="brett" type="add">Allow use of distributionSite POM attribute in artifact method</action>
</release>
<release version="1.3" date="2004-06-25">

View File

@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-changes-plugin</id>
<name>Maven Changes Plugin</name>
<currentVersion>1.4</currentVersion>
<currentVersion>1.5-SNAPSHOT</currentVersion>
<shortDescription>Produce changes report</shortDescription>
<url>http://maven.apache.org/reference/plugins/changes/</url>
<issueTrackingUrl>http://jira.codehaus.org/browse/MPCHANGES</issueTrackingUrl>

View File

@ -16,7 +16,8 @@
*/
-->
<project xmlns:util="jelly:util"
xmlns:j="jelly:core">
xmlns:j="jelly:core"
xmlns:assert="assert">
<goal name="testPlugin" prereqs="test-changes-report">
<attainGoal name="clean"/>
@ -24,10 +25,6 @@
<goal name="test-changes-report">
<attainGoal name="changes:report"/>
<j:set var="expectedFile" value="${maven.gen.docs}/changes-report.xml"/>
<util:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not generated</fail>
</j:if>
<assert:assertFileExists file="${maven.gen.docs}/changes-report.xml"/>
</goal>
</project>

View File

@ -24,6 +24,9 @@
<author email="vmassol@apache.org">Vincent Massol</author>
</properties>
<body>
<release version="1.5-SNAPSHOT" date="in CVS">
<action dev="dion" type="update">Use assert taglib in plugin test project</action>
</release>
<release version="1.4" date="2004-05-15">
<action dev="aheritier" type="fix" issue="MPCHANGES-8" due-to="Bertrand Florat">"title" attribute added to images. Correction of links in "Release History".</action>
<action dev="dion" type="fix">Fix issues with DOM classes and jdk1.3</action>