summaryrefslogtreecommitdiffstats
path: root/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html
diff options
context:
space:
mode:
Diffstat (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html')
-rw-r--r--site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html634
1 files changed, 634 insertions, 0 deletions
diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html
new file mode 100644
index 0000000000..875ad1d7d4
--- /dev/null
+++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html
@@ -0,0 +1,634 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_11) on Tue Jan 27 20:38:10 CST 2009 -->
+<TITLE>
+XMLFormatter
+</TITLE>
+
+<META NAME="date" CONTENT="2009-01-27">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+ if (location.href.indexOf('is-external=true') == -1) {
+ parent.document.title="XMLFormatter";
+ }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_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>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+ </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/JUnitServletFilter.html" title="class in org.apache.tuscany.sca.host.webapp.junit"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;NEXT CLASS</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ <A HREF="../../../../../../../index.html?org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html" target="_top"><B>FRAMES</B></A> &nbsp;
+&nbsp;<A HREF="XMLFormatter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
+&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+org.apache.tuscany.sca.host.webapp.junit</FONT>
+<BR>
+Class XMLFormatter</H2>
+<PRE>
+java.lang.Object
+ <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.tuscany.sca.host.webapp.junit.XMLFormatter</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>XMLFormatter</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+Format the test results in XML.
+<P>
+
+<P>
+<HR>
+
+<P>
+<!-- =========== FIELD SUMMARY =========== -->
+
+<A NAME="field_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Field Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_ERRORS">ATTR_ERRORS</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Errors attribute for TestSuite elements</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_FAILURES">ATTR_FAILURES</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Failures attribute for TestSuite elements</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_MESSAGE">ATTR_MESSAGE</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Message attribute for failure elements (message of the exception)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_NAME">ATTR_NAME</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name attribute for property, TestCase and TestSuite elements</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_TESTS">ATTR_TESTS</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests attribute for TestSuite elements (number of tests executed)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_TIME">ATTR_TIME</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Time attribute for TestCase and TestSuite elements</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ATTR_TYPE">ATTR_TYPE</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Type attribute for failure and error elements</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#ERROR">ERROR</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The error element (for a test case)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#FAILURE">FAILURE</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The failure element (for a test case)</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#TESTCASE">TESTCASE</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A single TestCase element</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#TESTSUITE">TESTSUITE</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A single test suite results.</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#XMLFormatter()">XMLFormatter</A></B>()</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#escape(java.lang.String)">escape</A></B>(java.lang.String&nbsp;theString)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Escapes reserved XML characters.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#exceptionToString(java.lang.Throwable)">exceptionToString</A></B>(java.lang.Throwable&nbsp;theThrowable)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the stack trace of an exception as String.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#exceptionToString(java.lang.Throwable, java.lang.String[])">exceptionToString</A></B>(java.lang.Throwable&nbsp;theThrowable,
+ java.lang.String[]&nbsp;theFilterPatterns)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the stack trace of an exception as String, optionally filtering
+ out line from the stack trace</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;boolean</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#filterLine(java.lang.String, java.lang.String[])">filterLine</A></B>(java.lang.String&nbsp;theLine,
+ java.lang.String[]&nbsp;theFilterPatterns)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#getDurationAsString(long)">getDurationAsString</A></B>(long&nbsp;theDuration)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Convert a duration expressed as a long into a string.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#toXML(Failure)">toXML</A></B>(Failure&nbsp;failure)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html#toXML(Result, java.lang.Class)">toXML</A></B>(Result&nbsp;result,
+ java.lang.Class&lt;?&gt;&nbsp;cls)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats the test result as an XML string.</TD>
+</TR>
+</TABLE>
+&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+&nbsp;
+<P>
+
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="ATTR_ERRORS"><!-- --></A><H3>
+ATTR_ERRORS</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_ERRORS</B></PRE>
+<DL>
+<DD>Errors attribute for TestSuite elements
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_ERRORS">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ATTR_FAILURES"><!-- --></A><H3>
+ATTR_FAILURES</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_FAILURES</B></PRE>
+<DL>
+<DD>Failures attribute for TestSuite elements
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_FAILURES">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ATTR_MESSAGE"><!-- --></A><H3>
+ATTR_MESSAGE</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_MESSAGE</B></PRE>
+<DL>
+<DD>Message attribute for failure elements (message of the exception)
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_MESSAGE">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ATTR_NAME"><!-- --></A><H3>
+ATTR_NAME</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_NAME</B></PRE>
+<DL>
+<DD>Name attribute for property, TestCase and TestSuite elements
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_NAME">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ATTR_TESTS"><!-- --></A><H3>
+ATTR_TESTS</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_TESTS</B></PRE>
+<DL>
+<DD>Tests attribute for TestSuite elements (number of tests executed)
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_TESTS">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ATTR_TIME"><!-- --></A><H3>
+ATTR_TIME</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_TIME</B></PRE>
+<DL>
+<DD>Time attribute for TestCase and TestSuite elements
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_TIME">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ATTR_TYPE"><!-- --></A><H3>
+ATTR_TYPE</H3>
+<PRE>
+public static final java.lang.String <B>ATTR_TYPE</B></PRE>
+<DL>
+<DD>Type attribute for failure and error elements
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ATTR_TYPE">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="ERROR"><!-- --></A><H3>
+ERROR</H3>
+<PRE>
+public static final java.lang.String <B>ERROR</B></PRE>
+<DL>
+<DD>The error element (for a test case)
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.ERROR">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="FAILURE"><!-- --></A><H3>
+FAILURE</H3>
+<PRE>
+public static final java.lang.String <B>FAILURE</B></PRE>
+<DL>
+<DD>The failure element (for a test case)
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.FAILURE">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="TESTCASE"><!-- --></A><H3>
+TESTCASE</H3>
+<PRE>
+public static final java.lang.String <B>TESTCASE</B></PRE>
+<DL>
+<DD>A single TestCase element
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.TESTCASE">Constant Field Values</A></DL>
+</DL>
+<HR>
+
+<A NAME="TESTSUITE"><!-- --></A><H3>
+TESTSUITE</H3>
+<PRE>
+public static final java.lang.String <B>TESTSUITE</B></PRE>
+<DL>
+<DD>A single test suite results.
+<P>
+<DL>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../constant-values.html#org.apache.tuscany.sca.host.webapp.junit.XMLFormatter.TESTSUITE">Constant Field Values</A></DL>
+</DL>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="XMLFormatter()"><!-- --></A><H3>
+XMLFormatter</H3>
+<PRE>
+public <B>XMLFormatter</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">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="escape(java.lang.String)"><!-- --></A><H3>
+escape</H3>
+<PRE>
+public static java.lang.String <B>escape</B>(java.lang.String&nbsp;theString)</PRE>
+<DL>
+<DD>Escapes reserved XML characters.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>theString</CODE> - the string to escape
+<DT><B>Returns:</B><DD>the escaped string</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="exceptionToString(java.lang.Throwable)"><!-- --></A><H3>
+exceptionToString</H3>
+<PRE>
+public static java.lang.String <B>exceptionToString</B>(java.lang.Throwable&nbsp;theThrowable)</PRE>
+<DL>
+<DD>Returns the stack trace of an exception as String.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>theThrowable</CODE> - the exception from which to extract the stack trace
+ as a String
+<DT><B>Returns:</B><DD>the exception stack trace as a String</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="exceptionToString(java.lang.Throwable, java.lang.String[])"><!-- --></A><H3>
+exceptionToString</H3>
+<PRE>
+public static java.lang.String <B>exceptionToString</B>(java.lang.Throwable&nbsp;theThrowable,
+ java.lang.String[]&nbsp;theFilterPatterns)</PRE>
+<DL>
+<DD>Returns the stack trace of an exception as String, optionally filtering
+ out line from the stack trace
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>theThrowable</CODE> - the exception from which to extract the stack trace
+ as a String<DD><CODE>theFilterPatterns</CODE> - Array containing a list of patterns to filter
+ out from the stack trace
+<DT><B>Returns:</B><DD>the exception stack trace as a String</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="filterLine(java.lang.String, java.lang.String[])"><!-- --></A><H3>
+filterLine</H3>
+<PRE>
+public static boolean <B>filterLine</B>(java.lang.String&nbsp;theLine,
+ java.lang.String[]&nbsp;theFilterPatterns)</PRE>
+<DL>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>theLine</CODE> - The line to check<DD><CODE>theFilterPatterns</CODE> - The patterns to filter out
+<DT><B>Returns:</B><DD>boolean Whether the specified line should be filtered from the
+ stack trace</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getDurationAsString(long)"><!-- --></A><H3>
+getDurationAsString</H3>
+<PRE>
+public static java.lang.String <B>getDurationAsString</B>(long&nbsp;theDuration)</PRE>
+<DL>
+<DD>Convert a duration expressed as a long into a string.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>theDuration</CODE> - the duration to convert to string
+<DT><B>Returns:</B><DD>the total duration as a string</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toXML(Failure)"><!-- --></A><H3>
+toXML</H3>
+<PRE>
+public static java.lang.String <B>toXML</B>(Failure&nbsp;failure)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toXML(Result, java.lang.Class)"><!-- --></A><H3>
+toXML</H3>
+<PRE>
+public static java.lang.String <B>toXML</B>(Result&nbsp;result,
+ java.lang.Class&lt;?&gt;&nbsp;cls)</PRE>
+<DL>
+<DD>Formats the test result as an XML string.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>result</CODE> - the test result object
+<DT><B>Returns:</B><DD>the XML string representation of the test results</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=2 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>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+ <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+ </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../../../../../../../org/apache/tuscany/sca/host/webapp/junit/JUnitServletFilter.html" title="class in org.apache.tuscany.sca.host.webapp.junit"><B>PREV CLASS</B></A>&nbsp;
+&nbsp;NEXT CLASS</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ <A HREF="../../../../../../../index.html?org/apache/tuscany/sca/host/webapp/junit/XMLFormatter.html" target="_top"><B>FRAMES</B></A> &nbsp;
+&nbsp;<A HREF="XMLFormatter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
+&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>