2008 lines
		
	
	
	
		
			50 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			2008 lines
		
	
	
	
		
			50 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
 | |
| <!--NewPage-->
 | |
| <HTML>
 | |
| <HEAD>
 | |
| <TITLE>
 | |
| jala.Test
 | |
| </TITLE>
 | |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
 | |
| </HEAD>
 | |
| <SCRIPT>
 | |
| function asd()
 | |
| {
 | |
| parent.document.title="jala.Test";
 | |
| }
 | |
| </SCRIPT>
 | |
| <BODY BGCOLOR="white" onload="asd();">
 | |
| 
 | |
| <!-- ========== START OF NAVBAR ========== -->
 | |
| <A NAME="navbar_bottom"><!-- --></A>
 | |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 | |
| <TR>
 | |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 | |
| <A NAME="navbar_bottom_firstrow"><!-- --></A>
 | |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 | |
|   <TR ALIGN="center" VALIGN="top">
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <A HREF="overview-summary-Global_jala.Test.js.html"><FONT CLASS="NavBarFont1"><B>File</B></FONT></A> </TD>
 | |
|   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
 | |
|   <!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"-->    <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!-- </TD-->
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"--><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
 | |
|   </TR>
 | |
| </TABLE>
 | |
| </TD>
 | |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 | |
| <B>Jala Test</B>
 | |
| </EM>
 | |
| </TD
 | |
| </TR>
 | |
| 
 | |
| <TR>
 | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 | |
|  <A HREF="jala.html"><B>PREV CLASS</B></A><!-- 
 | |
|    NEXT CLASS 
 | |
| -->
 | |
|  <A HREF="jala.Test.ArgumentsException.html"><B>NEXT CLASS</B></A></FONT></TD>
 | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 | |
|   <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>   
 | |
|  <A HREF="jala.Test.html" TARGET="_top"><B>NO FRAMES</B></A>   
 | |
|  
 | |
| <SCRIPT>
 | |
|   <!--
 | |
|   if(window==top) {
 | |
|     document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
 | |
|   }
 | |
|   //-->
 | |
| </SCRIPT>
 | |
| <NOSCRIPT>
 | |
| <A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
 | |
| </NOSCRIPT>
 | |
| </FONT></TD>
 | |
| </TR>
 | |
| <TR>
 | |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 | |
|   SUMMARY: <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
 | |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 | |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
 | |
| </TR>
 | |
| </TABLE>
 | |
| <!-- =========== END OF NAVBAR =========== -->
 | |
| <HR>
 | |
| 
 | |
| <!-- ======== START OF CLASS DATA ======== -->
 | |
| <H2>Class jala.Test</H2>
 | |
| <PRE>Object
 | |
|    |
 | |
|    +--<b>jala.Test</b>
 | |
| </PRE>
 | |
| 
 | |
| 
 | |
| <HR>
 | |
| <DL>
 | |
|    <!-- Class definition -->
 | |
|    <DT>class 
 | |
|    <B>jala.Test</B>
 | |
|    
 | |
| 
 | |
| </DL>
 | |
|    
 | |
|    <P>
 | |
|    <BR/>Provides various methods for automated tests.
 | |
|  This is essentially a port of JSUnit (http://www.edwardh.com/jsunit/)
 | |
|  suitable for testing Helma applications.
 | |
|  <BR/><I>Defined in <a href='overview-summary-Global_jala.Test.js.html'>Global/jala.Test.js</a></I><BR/><BR/>
 | |
|    </P>
 | |
|    
 | |
|    <HR>
 | |
| 
 | |
| <!-- ======== NESTED CLASS SUMMARY ======== -->
 | |
| 
 | |
| <A NAME="inner_classes"><!-- --></A>
 | |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
| <TD COLSPAN=2><FONT SIZE="+2">
 | |
| <B>Nested Class Summary</B></FONT></TD>
 | |
| </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.Exception.html">jala.Test.Exception</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.TestException.html">jala.Test.TestException</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.ArgumentsException.html">jala.Test.ArgumentsException</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.EvaluatorException.html">jala.Test.EvaluatorException</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.TestResult.html">jala.Test.TestResult</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.TestFunctionResult.html">jala.Test.TestFunctionResult</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.HttpClient.html">jala.Test.HttpClient</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.DatabaseMgr.html">jala.Test.DatabaseMgr</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static class></CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="jala.Test.SmtpServer.html">jala.Test.SmtpServer</A></B></CODE></TD>
 | |
|    </TR>
 | |
| 
 | |
| </TABLE>
 | |
|  
 | |
| 
 | |
| <!-- ======== END NESTED CLASS SUMMARY ======== -->
 | |
| 
 | |
| 
 | |
| <!-- =========== FIELD SUMMARY =========== -->
 | |
| 
 | |
|    <A NAME="field_summary"><!-- --></A>
 | |
|       <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
|          <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
|             <TD COLSPAN=2><FONT SIZE="+2">
 | |
|                <B>Field Summary</B></FONT></TD>
 | |
|          </TR>
 | |
| 
 | |
|    <!-- This is one instance field summary -->
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE> Number</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#functionsFailed">functionsFailed</A></B></CODE>
 | |
|    <BR>
 | |
|              Contains the number of test functions that failed</TD>
 | |
|    </TR>
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE> Number</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#functionsPassed">functionsPassed</A></B></CODE>
 | |
|    <BR>
 | |
|              Contains the number of test functions that passed</TD>
 | |
|    </TR>
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE> Array</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#results">results</A></B></CODE>
 | |
|    <BR>
 | |
|              An Array containing the results of this Test instance.</TD>
 | |
|    </TR>
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE> Boolean</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#testsFailed">testsFailed</A></B></CODE>
 | |
|    <BR>
 | |
|              Contains the number of tests that failed</TD>
 | |
|    </TR>
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE> Number</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#testsRun">testsRun</A></B></CODE>
 | |
|    <BR>
 | |
|              Contains the number of tests that were executed</TD>
 | |
|    </TR>
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static>  <final> String</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#!s!FAILED">FAILED</A></B></CODE>
 | |
|    <BR>
 | |
|              Constant indicating "failed" status</TD>
 | |
|    </TR>
 | |
|    
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 | |
|    <CODE><static>  <final> String</CODE></FONT></TD>
 | |
|    <TD><CODE><B><A HREF="#!s!PASSED">PASSED</A></B></CODE>
 | |
|    <BR>
 | |
|              Constant indicating "passed" status</TD>
 | |
|    </TR>
 | |
|    
 | |
| 
 | |
|    </TABLE>
 | |
|     
 | |
|    
 | |
| 
 | |
|    
 | |
| 
 | |
| <!-- =========== END FIELD SUMMARY =========== -->
 | |
| 
 | |
| 
 | |
| <!-- ======== CONSTRUCTOR SUMMARY ======== -->
 | |
| 
 | |
| <A NAME="constructor_summary"><!-- --></A>
 | |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
| <TD COLSPAN=2><FONT SIZE="+2">
 | |
| <B>Constructor Summary</B></FONT></TD>
 | |
| </TR>
 | |
| <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|    <TD>
 | |
|       <CODE>
 | |
| 	 <B>
 | |
| 	    <A HREF="jala.Test.html#jala.Test()">jala.Test</A> 
 | |
| 	 </B>
 | |
| 	 ()
 | |
|       </CODE>
 | |
|       <BR>
 | |
|                  
 | |
|       Constructs a new Test instance.
 | |
|       </TD>
 | |
| </TR>
 | |
| </TABLE>
 | |
| 
 | |
| <!-- ======== END CONSTRUCTOR SUMMARY ======== -->
 | |
| 
 | |
|  
 | |
| 
 | |
| <!-- ========== METHOD SUMMARY =========== -->
 | |
| 
 | |
| <A NAME="method_summary"><!-- --></A>
 | |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
| <TD COLSPAN=2><FONT SIZE="+2">
 | |
| <B>Method Summary</B></FONT></TD>
 | |
| </TR>
 | |
| 
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertEqual">assertEqual</A></B>(<Object> val1, <Object> val2)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the values passed as arguments are equal.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertEqualFile">assertEqualFile</A></B>(<Object> val, <String|helma.File> file)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument equals the content of a file on disk.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertFalse">assertFalse</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is boolean false.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertMatch">assertMatch</A></B>(<String> val, <RegExp> rxp)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the regular expression matches the string.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertNaN">assertNaN</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is NaN.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertNotEqual">assertNotEqual</A></B>(<Object> val1, <Object> val2)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the values passed as arguments are not equal.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertNotNaN">assertNotNaN</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is not NaN.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertNotNull">assertNotNull</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is not null.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertNotUndefined">assertNotUndefined</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is not undefined.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertNull">assertNull</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is null.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertStringContains">assertStringContains</A></B>(<String> val, <String> str)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument contains the pattern specified.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertThrows">assertThrows</A></B>(<Object> func, <Object> exception)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the function passed as argument throws a defined exception.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertTrue">assertTrue</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is boolean true.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#assertUndefined">assertUndefined</A></B>(<Object> val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Checks if the value passed as argument is undefined.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> String</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#directory_macro">directory_macro</A></B>()
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Returns the absolute path to the directory containing the tests
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#execute">execute</A></B>(<String|Array> what)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Main test execution function
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#executeTest">executeTest</A></B>(<helma.File> testFile)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Executes a single test file
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> Object</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#executeTestFunction">executeTestFunction</A></B>(<String> functionName, <helma.scripting.rhino.GlobalObject> scope)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Executes a single test function
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#list_macro">list_macro</A></B>()
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Renders the list of available tests
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#renderResult">renderResult</A></B>(result)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Renders the result of a single test
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#renderResults">renderResults</A></B>()
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Renders the results of all tests done by this test instance
 | |
|  to response.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#results_macro">results_macro</A></B>()
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Renders the test results
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> Boolean</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!argsContainComment">argsContainComment</A></B>(<Array> args, <Number> argsExpected)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Returns true if the arguments array passed as argument
 | |
|  contains an additional comment.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> Boolean</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!evalArguments">evalArguments</A></B>(<Object> args, argsExpected)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> String</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!getComment">getComment</A></B>(<Array> args, argsExpected)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Cuts out the comment from the arguments array passed
 | |
|  as argument and returns it.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> String</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!getStackTrace">getStackTrace</A></B>(<java.lang.StackTraceElement> trace)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Creates a stack trace and parses it for display.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> helma.File</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!getTestFile">getTestFile</A></B>(<String> fileName)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Returns the testfile with the given name
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> Array</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!getTestFiles">getTestFiles</A></B>()
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Returns an array containing the test files located
 | |
|  in the directory.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> helma.File</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!getTestsDirectory">getTestsDirectory</A></B>()
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Returns the directory containing the test files.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> Object</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!getValue">getValue</A></B>(<Array> args, argsExpected, <Number> idx)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Returns the argument on the index position in the array
 | |
|  passed as arguments.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> void</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!include">include</A></B>(<Object> scope, file)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Evaluates a javascript file in the global test scope.
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
|    <TR BGCOLOR="white" CLASS="TableRowColor">
 | |
|       <TD ALIGN="right" VALIGN="top" WIDTH="1%">
 | |
| 	 <FONT SIZE="-1">
 | |
| 	    <CODE><static> String</CODE>
 | |
| 	 </FONT>
 | |
|       </TD>
 | |
|       <TD>
 | |
| 	 <CODE>
 | |
| 	    <B>
 | |
| 	       <A HREF="#!s!valueToString">valueToString</A></B>(val)
 | |
| 	 </CODE>
 | |
| 	 <BR>
 | |
| 	           
 | |
| 	 Helper method useable for displaying a value
 | |
|       </TD>
 | |
|    </TR>
 | |
| 
 | |
| 
 | |
| </TABLE>
 | |
| 
 | |
| 
 | |
| 
 | |
| <P>
 | |
| <!-- ========== END METHOD SUMMARY =========== -->
 | |
| 
 | |
| 
 | |
| <!-- ============ FIELD DETAIL START =========== -->
 | |
| 
 | |
|    <A NAME="field_detail"><!-- --></A>
 | |
|    <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
|       <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
|          <TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD>
 | |
|       </TR>
 | |
|    </TABLE>
 | |
| 
 | |
|    
 | |
|    <A NAME="functionsFailed"><!-- --></A>
 | |
|    <H3>functionsFailed</H3>
 | |
|    <PRE>Number <B>functionsFailed</B></PRE>
 | |
|    <UL>
 | |
|    Contains the number of test functions that failed
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
|    <A NAME="functionsPassed"><!-- --></A>
 | |
|    <H3>functionsPassed</H3>
 | |
|    <PRE>Number <B>functionsPassed</B></PRE>
 | |
|    <UL>
 | |
|    Contains the number of test functions that passed
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
|    <A NAME="results"><!-- --></A>
 | |
|    <H3>results</H3>
 | |
|    <PRE>Array <B>results</B></PRE>
 | |
|    <UL>
 | |
|    An Array containing the results of this Test instance.
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
|    <A NAME="testsFailed"><!-- --></A>
 | |
|    <H3>testsFailed</H3>
 | |
|    <PRE>Boolean <B>testsFailed</B></PRE>
 | |
|    <UL>
 | |
|    Contains the number of tests that failed
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
|    <A NAME="testsRun"><!-- --></A>
 | |
|    <H3>testsRun</H3>
 | |
|    <PRE>Number <B>testsRun</B></PRE>
 | |
|    <UL>
 | |
|    Contains the number of tests that were executed
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
|    <A NAME="!s!FAILED"><!-- --></A>
 | |
|    <H3>FAILED</H3>
 | |
|    <PRE><static> <final> String <B>FAILED</B></PRE>
 | |
|    <UL>
 | |
|    Constant indicating "failed" status
 | |
|    
 | |
|     <P>
 | |
|     <DL>
 | |
|     <DT><B>See Also:</B><DD><A HREF="constant-values.html#java.awt.AWTEvent.COMPONENT_EVENT_MASK">Constant Field Values</A></DL>
 | |
|     </DL>
 | |
| 
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
|    <A NAME="!s!PASSED"><!-- --></A>
 | |
|    <H3>PASSED</H3>
 | |
|    <PRE><static> <final> String <B>PASSED</B></PRE>
 | |
|    <UL>
 | |
|    Constant indicating "passed" status
 | |
|    
 | |
|     <P>
 | |
|     <DL>
 | |
|     <DT><B>See Also:</B><DD><A HREF="constant-values.html#java.awt.AWTEvent.COMPONENT_EVENT_MASK">Constant Field Values</A></DL>
 | |
|     </DL>
 | |
| 
 | |
|    
 | |
|    </UL>
 | |
|    <HR>
 | |
|    
 | |
| 
 | |
| 
 | |
| <!-- ============ FIELD DETAIL END =========== -->
 | |
| 
 | |
|     <!-- ========= CONSTRUCTOR DETAIL START ======== -->
 | |
| 
 | |
| <A NAME="constructor_detail"><!-- --></A>
 | |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
|    <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
|       <TD COLSPAN=1>
 | |
|       <FONT SIZE="+2"><B>Constructor Detail</B></FONT>
 | |
|       </TD>
 | |
|    </TR>
 | |
| </TABLE>
 | |
| 
 | |
| <A NAME="jala.Test()"><!-- --></A><H3>
 | |
| jala.Test</H3>
 | |
| <PRE><B>jala.Test</B>()</PRE>
 | |
| 
 | |
| 
 | |
| <UL>
 | |
|    Constructs a new Test instance.
 | |
| </UL>
 | |
| 
 | |
| 
 | |
| 
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>capacity</CODE> -  The capacity of the cache  
 | |
|      </UL>
 | |
|    
 | |
|    
 | |
|    </UL>
 | |
| 
 | |
| 
 | |
| <!-- Constructor return value(s) -->
 | |
| 
 | |
| <!-- End constructor return value(s) -->
 | |
| 
 | |
| <!-- ADDITIONAL ATTRIBUTES -->
 | |
| 
 | |
| <HR/>
 | |
| <!-- END ADDITIONAL ATTRIBUTES  -->
 | |
| 
 | |
| <!-- ========= CONSTRUCTOR DETAIL END ======== -->
 | |
| 
 | |
| 
 | |
| <!-- ============ METHOD DETAIL START ========== -->
 | |
| 
 | |
| <A NAME="method_detail"><!-- --></A>
 | |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
 | |
|    <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 | |
|       <TD COLSPAN=1><FONT SIZE="+2">
 | |
|          <B>Method Detail</B></FONT>
 | |
|       </TD>
 | |
|    </TR>
 | |
| </TABLE>
 | |
| 
 | |
| <!-- One single method detail entry -->
 | |
| 
 | |
|    <A NAME="assertEqual"><!-- --></A>
 | |
|    <H3>assertEqual</H3>
 | |
|    <PRE>void <B>assertEqual</B>(<Object> val1, <Object> val2)</PRE>
 | |
|    
 | |
|       <UL>Checks if the values passed as arguments are equal.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val1</CODE> -  The value that should be compared to the second argument.  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>val2</CODE> -  The value that should be compared to the first argument.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertEqualFile"><!-- --></A>
 | |
|    <H3>assertEqualFile</H3>
 | |
|    <PRE>void <B>assertEqualFile</B>(<Object> val, <String|helma.File> file)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument equals the content of a file on disk.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be compared with the content of  the file on disk.  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>file</CODE> -  Either a file name (including a path), or  an instance of helma.File representing the file to use for comparison.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertFalse"><!-- --></A>
 | |
|    <H3>assertFalse</H3>
 | |
|    <PRE>void <B>assertFalse</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is boolean false.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be boolean false.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertMatch"><!-- --></A>
 | |
|    <H3>assertMatch</H3>
 | |
|    <PRE>void <B>assertMatch</B>(<String> val, <RegExp> rxp)</PRE>
 | |
|    
 | |
|       <UL>Checks if the regular expression matches the string.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The string that should contain the regular expression pattern  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>rxp</CODE> -  The regular expression that should match the value  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertNaN"><!-- --></A>
 | |
|    <H3>assertNaN</H3>
 | |
|    <PRE>void <B>assertNaN</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is NaN.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be NaN.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertNotEqual"><!-- --></A>
 | |
|    <H3>assertNotEqual</H3>
 | |
|    <PRE>void <B>assertNotEqual</B>(<Object> val1, <Object> val2)</PRE>
 | |
|    
 | |
|       <UL>Checks if the values passed as arguments are not equal.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val1</CODE> -  The value that should be compared to the second argument.  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>val2</CODE> -  The value that should be compared to the first argument.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertNotNaN"><!-- --></A>
 | |
|    <H3>assertNotNaN</H3>
 | |
|    <PRE>void <B>assertNotNaN</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is not NaN.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be not NaN.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertNotNull"><!-- --></A>
 | |
|    <H3>assertNotNull</H3>
 | |
|    <PRE>void <B>assertNotNull</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is not null.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be not null.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertNotUndefined"><!-- --></A>
 | |
|    <H3>assertNotUndefined</H3>
 | |
|    <PRE>void <B>assertNotUndefined</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is not undefined.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be not undefined.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertNull"><!-- --></A>
 | |
|    <H3>assertNull</H3>
 | |
|    <PRE>void <B>assertNull</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is null.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be null.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertStringContains"><!-- --></A>
 | |
|    <H3>assertStringContains</H3>
 | |
|    <PRE>void <B>assertStringContains</B>(<String> val, <String> str)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument contains the pattern specified.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The string that should contain the pattern  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>str</CODE> -  The string that should be contained  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertThrows"><!-- --></A>
 | |
|    <H3>assertThrows</H3>
 | |
|    <PRE>void <B>assertThrows</B>(<Object> func, <Object> exception)</PRE>
 | |
|    
 | |
|       <UL>Checks if the function passed as argument throws a defined exception.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>func</CODE> -  The function to call  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>exception</CODE> -  Optional object expected to be thrown when executing  the function  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertTrue"><!-- --></A>
 | |
|    <H3>assertTrue</H3>
 | |
|    <PRE>void <B>assertTrue</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is boolean true.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be boolean true.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="assertUndefined"><!-- --></A>
 | |
|    <H3>assertUndefined</H3>
 | |
|    <PRE>void <B>assertUndefined</B>(<Object> val)</PRE>
 | |
|    
 | |
|       <UL>Checks if the value passed as argument is undefined.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>val</CODE> -  The value that should be undefined.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <UL>   
 | |
|    <B>Throws:</B><UL>- jala.Test.ArgumentsException  <BR>- jala.Test.TestException    </UL>
 | |
|    </UL>
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="directory_macro"><!-- --></A>
 | |
|    <H3>directory_macro</H3>
 | |
|    <PRE>String <B>directory_macro</B>()</PRE>
 | |
|    
 | |
|       <UL>Returns the absolute path to the directory containing the tests</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The path to the tests directory   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="execute"><!-- --></A>
 | |
|    <H3>execute</H3>
 | |
|    <PRE>void <B>execute</B>(<String|Array> what)</PRE>
 | |
|    
 | |
|       <UL>Main test execution function</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>what</CODE> -  Either the name of a single test file  or an array containing the names of several function files that should  be executed.    
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="executeTest"><!-- --></A>
 | |
|    <H3>executeTest</H3>
 | |
|    <PRE>void <B>executeTest</B>(<helma.File> testFile)</PRE>
 | |
|    
 | |
|       <UL>Executes a single test file</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>testFile</CODE> -  The file containing the test to run    
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="executeTestFunction"><!-- --></A>
 | |
|    <H3>executeTestFunction</H3>
 | |
|    <PRE>Object <B>executeTestFunction</B>(<String> functionName, <helma.scripting.rhino.GlobalObject> scope)</PRE>
 | |
|    
 | |
|       <UL>Executes a single test function</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>functionName</CODE> -  The name of the test function to execute  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>scope</CODE> -  The scope to execute  the test method in
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="list_macro"><!-- --></A>
 | |
|    <H3>list_macro</H3>
 | |
|    <PRE>void <B>list_macro</B>()</PRE>
 | |
|    
 | |
|       <UL>Renders the list of available tests</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="renderResult"><!-- --></A>
 | |
|    <H3>renderResult</H3>
 | |
|    <PRE>void <B>renderResult</B>(result)</PRE>
 | |
|    
 | |
|       <UL>Renders the result of a single test</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>The</CODE> -  result to render    
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="renderResults"><!-- --></A>
 | |
|    <H3>renderResults</H3>
 | |
|    <PRE>void <B>renderResults</B>()</PRE>
 | |
|    
 | |
|       <UL>Renders the results of all tests done by this test instance
 | |
|  to response.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="results_macro"><!-- --></A>
 | |
|    <H3>results_macro</H3>
 | |
|    <PRE>void <B>results_macro</B>()</PRE>
 | |
|    
 | |
|       <UL>Renders the test results</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!argsContainComment"><!-- --></A>
 | |
|    <H3>argsContainComment</H3>
 | |
|    <PRE><static> Boolean <B>argsContainComment</B>(<Array> args, <Number> argsExpected)</PRE>
 | |
|    
 | |
|       <UL>Returns true if the arguments array passed as argument
 | |
|  contains an additional comment.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>args</CODE> -  The arguments array to check for an existing comment.  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>argsExpected</CODE> -  The number of arguments expected by the  assertion function.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         True if the arguments contain a comment, false otherwise.   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!evalArguments"><!-- --></A>
 | |
|    <H3>evalArguments</H3>
 | |
|    <PRE><static> Boolean <B>evalArguments</B>(<Object> args, argsExpected)</PRE>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>args</CODE> -  The arguments array.  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>nr</CODE> -  The number of arguments to be expected  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         True in case the number of arguments matches  the expected amount, false otherwise.   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!getComment"><!-- --></A>
 | |
|    <H3>getComment</H3>
 | |
|    <PRE><static> String <B>getComment</B>(<Array> args, argsExpected)</PRE>
 | |
|    
 | |
|       <UL>Cuts out the comment from the arguments array passed
 | |
|  as argument and returns it. CAUTION: this actually modifies
 | |
|  the arguments array!</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>args</CODE> -  The arguments array.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The comment, if existing. Null otherwise.   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!getStackTrace"><!-- --></A>
 | |
|    <H3>getStackTrace</H3>
 | |
|    <PRE><static> String <B>getStackTrace</B>(<java.lang.StackTraceElement> trace)</PRE>
 | |
|    
 | |
|       <UL>Creates a stack trace and parses it for display.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>trace</CODE> -  The trace to parse. If not given  a stacktrace will be generated  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The parsed stack trace   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!getTestFile"><!-- --></A>
 | |
|    <H3>getTestFile</H3>
 | |
|    <PRE><static> helma.File <B>getTestFile</B>(<String> fileName)</PRE>
 | |
|    
 | |
|       <UL>Returns the testfile with the given name</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>fileName</CODE> -  The name of the test file  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The test file   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!getTestFiles"><!-- --></A>
 | |
|    <H3>getTestFiles</H3>
 | |
|    <PRE><static> Array <B>getTestFiles</B>()</PRE>
 | |
|    
 | |
|       <UL>Returns an array containing the test files located
 | |
|  in the directory.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         An array containing the names of all test files   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!getTestsDirectory"><!-- --></A>
 | |
|    <H3>getTestsDirectory</H3>
 | |
|    <PRE><static> helma.File <B>getTestsDirectory</B>()</PRE>
 | |
|    
 | |
|       <UL>Returns the directory containing the test files.
 | |
|  The location of the directory is either defined by the
 | |
|  application property "jala.testDir" or expected to be one level
 | |
|  above the application directory (and named "tests")</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The directory containing the test files   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!getValue"><!-- --></A>
 | |
|    <H3>getValue</H3>
 | |
|    <PRE><static> Object <B>getValue</B>(<Array> args, argsExpected, <Number> idx)</PRE>
 | |
|    
 | |
|       <UL>Returns the argument on the index position in the array
 | |
|  passed as arguments. This method respects an optional comment
 | |
|  at the beginning of the arguments array.</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>args</CODE> -  The arguments to retrieve the non-comment  value from.  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>idx</CODE> -  The index position on which the value to  retrieve is to be expected if <em>no</em> comment is existing.  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The non-comment value, or null.   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!include"><!-- --></A>
 | |
|    <H3>include</H3>
 | |
|    <PRE><static> void <B>include</B>(<Object> scope, file)</PRE>
 | |
|    
 | |
|       <UL>Evaluates a javascript file in the global test scope. This method can be used
 | |
|  to include generic testing code in test files. This method is available as
 | |
|  global method "include" for all test methods</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>scope</CODE> -  The scope in which the file should be evaluated  
 | |
|       </UL> 
 | |
|    
 | |
|      <UL><CODE>fileName</CODE> -  The name of the file to include, including the path    
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
|    <A NAME="!s!valueToString"><!-- --></A>
 | |
|    <H3>valueToString</H3>
 | |
|    <PRE><static> String <B>valueToString</B>(val)</PRE>
 | |
|    
 | |
|       <UL>Helper method useable for displaying a value</UL>
 | |
|    
 | |
| 
 | |
|    <!-- METHOD PARAMETERS START -->
 | |
|    
 | |
|    <UL>
 | |
|    <B>Parameters:</B>
 | |
|    
 | |
|      <UL><CODE>The</CODE> -  value to render  
 | |
|       </UL> 
 | |
|    
 | |
|    </UL>
 | |
|    
 | |
|    <!-- METHOD PARAMETERS END -->
 | |
| 
 | |
|    
 | |
|    <UL>
 | |
|    <B>Returns:</B>
 | |
|         <UL>
 | |
|         The value rendered as string   
 | |
|         </UL>
 | |
|    </UL>
 | |
|    
 | |
| 
 | |
|    <!-- ADDITIONAL ATTRIBUTES START -->
 | |
|    
 | |
|    <!-- ADDITIONAL ATTRIBUTES  END -->
 | |
| <HR>
 | |
| 
 | |
| 
 | |
| 
 | |
| <!-- ============ METHOD DETAIL END ========== -->
 | |
| 
 | |
| <!-- ========= END OF CLASS DATA ========= -->
 | |
| 
 | |
| <!-- ========== START OF NAVBAR ========== -->
 | |
| <A NAME="navbar_bottom"><!-- --></A>
 | |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
 | |
| <TR>
 | |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 | |
| <A NAME="navbar_bottom_firstrow"><!-- --></A>
 | |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
 | |
|   <TR ALIGN="center" VALIGN="top">
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <A HREF="overview-summary-Global_jala.Test.js.html"><FONT CLASS="NavBarFont1"><B>File</B></FONT></A> </TD>
 | |
|   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><b>Tree</b></FONT></A> </TD>
 | |
|   <!--TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"-->    <!--A HREF="deprecated-list.html"--><!--FONT CLASS="NavBarFont1">Deprecated</FONT--><!--/A--><!-- </TD-->
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
 | |
|   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
 | |
|   </TR>
 | |
| </TABLE>
 | |
| </TD>
 | |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 | |
| <B>Jala Test</B>
 | |
| </EM>
 | |
| </TD
 | |
| </TR>
 | |
| 
 | |
| <TR>
 | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 | |
|  <A HREF="jala.html"><B>PREV CLASS</B></A><!-- 
 | |
|    NEXT CLASS 
 | |
| -->
 | |
|  <A HREF="jala.Test.ArgumentsException.html"><B>NEXT CLASS</B></A></FONT></TD>
 | |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 | |
|   <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>   
 | |
|  <A HREF="jala.Test.html" TARGET="_top"><B>NO FRAMES</B></A>   
 | |
|  
 | |
| <SCRIPT>
 | |
|   <!--
 | |
|   if(window==top) {
 | |
|     document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
 | |
|   }
 | |
|   //-->
 | |
| </SCRIPT>
 | |
| <NOSCRIPT>
 | |
| <A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>
 | |
| </NOSCRIPT>
 | |
| </FONT></TD>
 | |
| </TR>
 | |
| <TR>
 | |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 | |
|   SUMMARY: <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
 | |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 | |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
 | |
| </TR>
 | |
| </TABLE>
 | |
| 
 | |
| <!-- =========== END OF NAVBAR =========== -->
 | |
| 
 | |
| <HR>
 | |
| <FONT SIZE="-1">
 | |
| 
 | |
| </FONT>
 | |
| <div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Tue Jan  8 15:50:17 2008</div>
 | |
| </BODY>
 | |
| </HTML>
 |