You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by st...@outerthought.org on 2003/06/10 15:00:03 UTC

[WIKI-UPDATE] LenyaUnitTests Tue Jun 10 15:00:02 2003

Page: http://wiki.cocoondev.org/Wiki.jsp?page=LenyaUnitTests , version: 9 on Tue Jun 10 12:19:17 2003 by AndreasHartmann

+ !!Adding the Test to the Buildfile
+ If you use assertions (Java assertions, not the JUnit ones) in your test,
+ it is important to enable them using the {{-ea}} or {{-enableassertions}} argument.
+ 
+ {{{
+     <!-- My Test -->
+     <java fork="yes" classname="org.apache.lenya.cms.mypackage.MyTest">
+       <jvmarg value="-enableassertions"/>
+ 
+       <!--
+       Lenya installation directory.
+       This becomes the "pathToSomewhere" parameter.
+       -->
+       <arg value="${install.dir}"/> 
+ 
+       <classpath refid="classpath"/>
+       <classpath>
+         <pathelement location="${build.test}" />
+         <pathelement path="${build.root}/lenya/webapp/WEB-INF/classes" />
+         <fileset dir="${build.root}/lenya/webapp/WEB-INF/lib">
+           <include name="ant**.jar"/>
+         </fileset>
+       </classpath>
+     </java>
+ }}}
+ 
+