Use assert taglib in plugin test
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115598 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dbc1eca640
commit
90e2f8eb9b
@ -23,7 +23,7 @@
|
|||||||
<pomVersion>3</pomVersion>
|
<pomVersion>3</pomVersion>
|
||||||
<id>maven-faq-plugin</id>
|
<id>maven-faq-plugin</id>
|
||||||
<name>Maven FAQ Plug-in</name>
|
<name>Maven FAQ Plug-in</name>
|
||||||
<currentVersion>1.4</currentVersion>
|
<currentVersion>1.5-SNAPSHOT</currentVersion>
|
||||||
<gumpRepositoryId>jakarta</gumpRepositoryId>
|
<gumpRepositoryId>jakarta</gumpRepositoryId>
|
||||||
<description>Creates XDoc documentation from an FAQ XML document.</description>
|
<description>Creates XDoc documentation from an FAQ XML document.</description>
|
||||||
<shortDescription>FAQ Plugin</shortDescription>
|
<shortDescription>FAQ Plugin</shortDescription>
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
-->
|
-->
|
||||||
<project xmlns:util="jelly:util"
|
<project xmlns:util="jelly:util"
|
||||||
|
xmlns:assert="assert"
|
||||||
xmlns:j="jelly:core">
|
xmlns:j="jelly:core">
|
||||||
|
|
||||||
<goal name="testPlugin" prereqs="clean,test-faq">
|
<goal name="testPlugin" prereqs="clean,test-faq">
|
||||||
@ -25,19 +26,8 @@
|
|||||||
<goal name="test-faq">
|
<goal name="test-faq">
|
||||||
<attainGoal name="site"/>
|
<attainGoal name="site"/>
|
||||||
|
|
||||||
<j:set var="expectedFile"
|
<assert:assertFileExists file="${maven.docs.dest}/faq.html"/>
|
||||||
value="${maven.docs.dest}/faq.html"/>
|
<assert:assertFileExists file="${maven.docs.dest}/faq2.html"/>
|
||||||
<util:file var="file" name="${expectedFile}" />
|
|
||||||
<j:if test="${!(file.exists())}">
|
|
||||||
<fail>${expectedFile} not generated</fail>
|
|
||||||
</j:if>
|
|
||||||
|
|
||||||
<j:set var="expectedFile"
|
|
||||||
value="${maven.docs.dest}/faq2.html"/>
|
|
||||||
<util:file var="file" name="${expectedFile}" />
|
|
||||||
<j:if test="${!(file.exists())}">
|
|
||||||
<fail>${expectedFile} not generated</fail>
|
|
||||||
</j:if>
|
|
||||||
|
|
||||||
</goal>
|
</goal>
|
||||||
</project>
|
</project>
|
||||||
@ -24,6 +24,10 @@
|
|||||||
<author email="dion@apache.org">dIon Gillard</author>
|
<author email="dion@apache.org">dIon Gillard</author>
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
|
<release version="1.5-SNAPSHOT" date="in CVS">
|
||||||
|
<action dev="dion" type="update">Use assert tag library in plugin tests.</action>
|
||||||
|
</release>
|
||||||
|
|
||||||
<release version="1.4" date="2004-06-25">
|
<release version="1.4" date="2004-06-25">
|
||||||
<action dev="brett" type="fix" issue="MPFAQ-13">Correctly pass through CDATA content</action>
|
<action dev="brett" type="fix" issue="MPFAQ-13">Correctly pass through CDATA content</action>
|
||||||
<action dev="brett" type="fix" issue="MPFAQ-12">Make sure maven.faq.src exists to avoid exceptions</action>
|
<action dev="brett" type="fix" issue="MPFAQ-12">Make sure maven.faq.src exists to avoid exceptions</action>
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
-->
|
-->
|
||||||
<project xmlns:util="jelly:util"
|
<project xmlns:util="jelly:util"
|
||||||
|
xmlns:assert="assert"
|
||||||
xmlns:j="jelly:core">
|
xmlns:j="jelly:core">
|
||||||
|
|
||||||
<goal name="testPlugin" prereqs="test-gump">
|
<goal name="testPlugin" prereqs="test-gump">
|
||||||
@ -23,12 +24,8 @@
|
|||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
<goal name="test-gump">
|
<goal name="test-gump">
|
||||||
<j:set var="expectedFile" value="${basedir}/gump.xml"/>
|
|
||||||
<attainGoal name="gump"/>
|
<attainGoal name="gump"/>
|
||||||
<util:file var="descriptor" name="${expectedFile}" />
|
<assert:assertFileExists file="${basedir}/gump.xml"/>
|
||||||
<j:if test="${!(descriptor.exists())}">
|
<delete file="${basedir}/gump.xml"/>
|
||||||
<fail>gump.xml not generated</fail>
|
|
||||||
</j:if>
|
|
||||||
<delete file="${expectedFile}"/>
|
|
||||||
</goal>
|
</goal>
|
||||||
</project>
|
</project>
|
||||||
@ -25,6 +25,7 @@
|
|||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="1.4-SNAPSHOT" date="in CVS">
|
<release version="1.4-SNAPSHOT" date="in CVS">
|
||||||
|
<action dev="dion" type="update">Plugin tests now use assert taglib</action>
|
||||||
<action dev="brett" type="add" issue="MPGUMP-1">Allow creation of <maven descriptor element, and default to it</action>
|
<action dev="brett" type="add" issue="MPGUMP-1">Allow creation of <maven descriptor element, and default to it</action>
|
||||||
<action dev="brett" type="add">Add maven.gump.ant.target and maven.gump.maven.goal properties</action>
|
<action dev="brett" type="add">Add maven.gump.ant.target and maven.gump.maven.goal properties</action>
|
||||||
</release>
|
</release>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user