vmassol 2003/11/24 12:46:56 Modified: plugin plugin.jelly plugin/xdocs changes.xml Log: 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... Revision Changes Path 1.25 +5 -0 maven-plugins/plugin/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /home/cvs/maven-plugins/plugin/plugin.jelly,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- plugin.jelly 17 Nov 2003 21:32:41 -0000 1.24 +++ plugin.jelly 24 Nov 2003 20:46:56 -0000 1.25 @@ -257,6 +257,11 @@ <ant:fail>${file} does not exist</ant:fail> </j:if> </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> </project> 1.8 +4 -0 maven-plugins/plugin/xdocs/changes.xml Index: changes.xml =================================================================== RCS file: /home/cvs/maven-plugins/plugin/xdocs/changes.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- changes.xml 17 Nov 2003 21:32:40 -0000 1.7 +++ changes.xml 24 Nov 2003 20:46:56 -0000 1.8 @@ -8,6 +8,10 @@ <body> <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"> Added assert:assertFileExists tag to verify if a file exists while testing a plugin. </action>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]