📄 exprevaltest.html
字号:
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="fileName"><!-- --></A><H3>
fileName</H3>
<PRE>
public static java.lang.String <B>fileName</B></PRE>
<DL>
<DD>The file name of the XML document, which storing all test cases.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="total"><!-- --></A><H3>
total</H3>
<PRE>
public static int <B>total</B></PRE>
<DL>
<DD>The total number of test cases.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="warnings"><!-- --></A><H3>
warnings</H3>
<PRE>
public static int <B>warnings</B></PRE>
<DL>
<DD>The number of warnings on test cases. A warning is the testing result indicating that if the expected output is a evaluated value, the running of the test case must output exactly the same value; if the expected output is an exception, the running of the test case must throw an exception, even the thrown exception is different from the expected one.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="errors"><!-- --></A><H3>
errors</H3>
<PRE>
public static int <B>errors</B></PRE>
<DL>
<DD>The number of errors on test cases.
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="ExprEvalTest()"><!-- --></A><H3>
ExprEvalTest</H3>
<PRE>
public <B>ExprEvalTest</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
main</H3>
<PRE>
public static void <B>main</B>(java.lang.String[] args) throws java.lang.Exception</PRE>
<DL>
<DD>Main entry to the testing of ExprEval.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>args</CODE> - a string indicating the name of an XML file, which contains data of test cases. If no args are provided, a default file name will be used.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - when exceptions occurs while testing.</DL>
</DD>
</DL>
<HR>
<A NAME="getDoc()"><!-- --></A><H3>
getDoc</H3>
<PRE>
public static org.w3c.dom.Document <B>getDoc</B>() throws org.xml.sax.SAXException</PRE>
<DL>
<DD>Create an instance of Document from the XML document.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the newly created Document.<DT><B>Throws:</B><DD><CODE>org.xml.sax.SAXException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="test(org.w3c.dom.Document)"><!-- --></A><H3>
test</H3>
<PRE>
public static void <B>test</B>(org.w3c.dom.Document doc) throws <A HREF="../exceptions/ExpressionException.html" title="class in exceptions">ExpressionException</A></PRE>
<DL>
<DD>Run all test case specified in the Document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - the XML document containing all test cases.<DT><B>Throws:</B><DD><CODE><A HREF="../exceptions/ExpressionException.html" title="class in exceptions">ExpressionException</A></CODE> - result of running test case.</DL>
</DD>
</DL>
<HR>
<A NAME="test(test.TestCase)"><!-- --></A><H3>
test</H3>
<PRE>
public static void <B>test</B>(<A HREF="../test/TestCase.html" title="class in test">TestCase</A> tc) throws <A HREF="../exceptions/ExpressionException.html" title="class in exceptions">ExpressionException</A></PRE>
<DL>
<DD>Run a test case.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tc</CODE> - test case to be performed.<DT><B>Throws:</B><DD><CODE><A HREF="../exceptions/ExpressionException.html" title="class in exceptions">ExpressionException</A></CODE> - result of running test case.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../test/TestCase.html" title="class in test"><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="ExprEvalTest.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <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>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -