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>
+ }}}
+ 
+ 


Reply via email to