Added assert:assertEquals tag to verify if two values are equal while testing a plugin. We probably need to use the jelly junit taglib soon or create a new one...
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114401 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ad9c35364d
commit
55b4a1e3b3
@ -257,6 +257,11 @@
|
|||||||
<ant:fail>${file} does not exist</ant:fail>
|
<ant:fail>${file} does not exist</ant:fail>
|
||||||
</j:if>
|
</j:if>
|
||||||
</define:tag>
|
</define:tag>
|
||||||
|
<define:tag name="assertEquals">
|
||||||
|
<j:if test="${not(expected.equals(value))}">
|
||||||
|
<ant:fail>Expected [${expected}] but got [${value}]</ant:fail>
|
||||||
|
</j:if>
|
||||||
|
</define:tag>
|
||||||
</define:taglib>
|
</define:taglib>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@ -7,6 +7,10 @@
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<release version="1.2" date="in CVS">
|
<release version="1.2" date="in CVS">
|
||||||
|
<action dev="vmassol" type="add">
|
||||||
|
Added assert:assertEquals tag to verify if two values are equal
|
||||||
|
while testing a plugin.
|
||||||
|
</action>
|
||||||
<action dev="vmassol" type="add">
|
<action dev="vmassol" type="add">
|
||||||
Added assert:assertFileExists tag to verify if a file exists while
|
Added assert:assertFileExists tag to verify if a file exists while
|
||||||
testing a plugin.
|
testing a plugin.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user