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>
|
||||
<id>maven-faq-plugin</id>
|
||||
<name>Maven FAQ Plug-in</name>
|
||||
<currentVersion>1.4</currentVersion>
|
||||
<currentVersion>1.5-SNAPSHOT</currentVersion>
|
||||
<gumpRepositoryId>jakarta</gumpRepositoryId>
|
||||
<description>Creates XDoc documentation from an FAQ XML document.</description>
|
||||
<shortDescription>FAQ Plugin</shortDescription>
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
*/
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:assert="assert"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="testPlugin" prereqs="clean,test-faq">
|
||||
@ -25,19 +26,8 @@
|
||||
<goal name="test-faq">
|
||||
<attainGoal name="site"/>
|
||||
|
||||
<j:set var="expectedFile"
|
||||
value="${maven.docs.dest}/faq.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>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/faq.html"/>
|
||||
<assert:assertFileExists file="${maven.docs.dest}/faq2.html"/>
|
||||
|
||||
</goal>
|
||||
</project>
|
||||
@ -24,6 +24,10 @@
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<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">
|
||||
<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>
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
*/
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:assert="assert"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-gump">
|
||||
@ -23,12 +24,8 @@
|
||||
</goal>
|
||||
|
||||
<goal name="test-gump">
|
||||
<j:set var="expectedFile" value="${basedir}/gump.xml"/>
|
||||
<attainGoal name="gump"/>
|
||||
<util:file var="descriptor" name="${expectedFile}" />
|
||||
<j:if test="${!(descriptor.exists())}">
|
||||
<fail>gump.xml not generated</fail>
|
||||
</j:if>
|
||||
<delete file="${expectedFile}"/>
|
||||
<assert:assertFileExists file="${basedir}/gump.xml"/>
|
||||
<delete file="${basedir}/gump.xml"/>
|
||||
</goal>
|
||||
</project>
|
||||
@ -25,6 +25,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<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">Add maven.gump.ant.target and maven.gump.maven.goal properties</action>
|
||||
</release>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user