????
| Current Path : /opt/ant/manual/api/org/apache/tools/ant/taskdefs/optional/junit/ |
| Current File : //opt/ant/manual/api/org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Tue May 22 06:24:54 CEST 2012 -->
<title>JUnitTest (Apache Ant API)</title>
<meta name="date" content="2012-05-22">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="JUnitTest (Apache Ant API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskMirrorImpl.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html" target="_top">Frames</a></li>
<li><a href="JUnitTest.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#fields_inherited_from_class_org.apache.tools.ant.taskdefs.optional.junit.BaseTest">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.tools.ant.taskdefs.optional.junit</div>
<h2 title="Class JUnitTest" class="title">Class JUnitTest</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">org.apache.tools.ant.taskdefs.optional.junit.BaseTest</a></li>
<li>
<ul class="inheritance">
<li>org.apache.tools.ant.taskdefs.optional.junit.JUnitTest</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Cloneable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">JUnitTest</span>
extends <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">BaseTest</a>
implements java.lang.Cloneable</pre>
<div class="block"><p> Run a single JUnit test.
<p> The JUnit test is actually run by <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>JUnitTestRunner</code></a>.
So read the doc comments for that class :)</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.2</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>JUnitTask</code></a>,
<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><code>JUnitTestRunner</code></a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.taskdefs.optional.junit.BaseTest">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.tools.ant.taskdefs.optional.junit.<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">BaseTest</a></h3>
<code><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#destDir">destDir</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#errorProperty">errorProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#failureProperty">failureProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#filtertrace">filtertrace</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#fork">fork</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#formatters">formatters</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#haltOnError">haltOnError</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#haltOnFail">haltOnFail</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#ifProperty">ifProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#unlessProperty">unlessProperty</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#JUnitTest()">JUnitTest</a></strong>()</code>
<div class="block">No arg constructor.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#JUnitTest(java.lang.String)">JUnitTest</a></strong>(java.lang.String name)</code>
<div class="block">Constructor with name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#JUnitTest(java.lang.String, boolean, boolean, boolean)">JUnitTest</a></strong>(java.lang.String name,
boolean haltOnError,
boolean haltOnFailure,
boolean filtertrace)</code>
<div class="block">Constructor with options.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#JUnitTest(java.lang.String, boolean, boolean, boolean, java.lang.String[])">JUnitTest</a></strong>(java.lang.String name,
boolean haltOnError,
boolean haltOnFailure,
boolean filtertrace,
java.lang.String[] methods)</code>
<div class="block">Constructor with options.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#clone()">clone</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#errorCount()">errorCount</a></strong>()</code>
<div class="block">Get the number of errors.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#failureCount()">failureCount</a></strong>()</code>
<div class="block">Get the number of failures.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">FormatterElement</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#getFormatters()">getFormatters</a></strong>()</code>
<div class="block">Get the formatters set for this test.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#getName()">getName</a></strong>()</code>
<div class="block">Get the name of the test class.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#getOutfile()">getOutfile</a></strong>()</code>
<div class="block">Get the name of the output file</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Properties</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#getProperties()">getProperties</a></strong>()</code>
<div class="block">Get the properties used in the test.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#getRunTime()">getRunTime</a></strong>()</code>
<div class="block">Get the run time.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#parseTestMethodNamesList(java.lang.String)">parseTestMethodNamesList</a></strong>(java.lang.String methodNames)</code>
<div class="block">Parses a comma-separated list of method names and check their validity.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#runCount()">runCount</a></strong>()</code>
<div class="block">Get the number of runs.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#setCounts(long, long, long)">setCounts</a></strong>(long runs,
long failures,
long errors)</code>
<div class="block">Set the number of runs, failures and errors.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#setMethods(java.lang.String)">setMethods</a></strong>(java.lang.String value)</code>
<div class="block">Sets names of individual test methods to be executed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#setName(java.lang.String)">setName</a></strong>(java.lang.String value)</code>
<div class="block">Set the name of the test class.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#setOutfile(java.lang.String)">setOutfile</a></strong>(java.lang.String value)</code>
<div class="block">Set the name of the output file.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#setProperties(java.util.Hashtable)">setProperties</a></strong>(java.util.Hashtable p)</code>
<div class="block">Set the properties to be used in the test.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#setRunTime(long)">setRunTime</a></strong>(long runTime)</code>
<div class="block">Set the runtime.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html#shouldRun(org.apache.tools.ant.Project)">shouldRun</a></strong>(<a href="../../../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</a> p)</code>
<div class="block">Check if this test should run based on the if and unless
attributes.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.taskdefs.optional.junit.BaseTest">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">BaseTest</a></h3>
<code><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#addFormatter(org.apache.tools.ant.taskdefs.optional.junit.FormatterElement)">addFormatter</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getErrorProperty()">getErrorProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getFailureProperty()">getFailureProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getFiltertrace()">getFiltertrace</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getFork()">getFork</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getHaltonerror()">getHaltonerror</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getHaltonfailure()">getHaltonfailure</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getIfCondition()">getIfCondition</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getTodir()">getTodir</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#getUnlessCondition()">getUnlessCondition</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setErrorProperty(java.lang.String)">setErrorProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setFailureProperty(java.lang.String)">setFailureProperty</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setFiltertrace(boolean)">setFiltertrace</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setFork(boolean)">setFork</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setHaltonerror(boolean)">setHaltonerror</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setHaltonfailure(boolean)">setHaltonfailure</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setIf(java.lang.Object)">setIf</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setIf(java.lang.String)">setIf</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setTodir(java.io.File)">setTodir</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setUnless(java.lang.Object)">setUnless</a>, <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/BaseTest.html#setUnless(java.lang.String)">setUnless</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="JUnitTest()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JUnitTest</h4>
<pre>public JUnitTest()</pre>
<div class="block">No arg constructor.</div>
</li>
</ul>
<a name="JUnitTest(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JUnitTest</h4>
<pre>public JUnitTest(java.lang.String name)</pre>
<div class="block">Constructor with name.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the test.</dd></dl>
</li>
</ul>
<a name="JUnitTest(java.lang.String, boolean, boolean, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JUnitTest</h4>
<pre>public JUnitTest(java.lang.String name,
boolean haltOnError,
boolean haltOnFailure,
boolean filtertrace)</pre>
<div class="block">Constructor with options.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the test.</dd><dd><code>haltOnError</code> - if true halt the tests if there is an error.</dd><dd><code>haltOnFailure</code> - if true halt the tests if there is a failure.</dd><dd><code>filtertrace</code> - if true filter stack traces.</dd></dl>
</li>
</ul>
<a name="JUnitTest(java.lang.String, boolean, boolean, boolean, java.lang.String[])">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JUnitTest</h4>
<pre>public JUnitTest(java.lang.String name,
boolean haltOnError,
boolean haltOnFailure,
boolean filtertrace,
java.lang.String[] methods)</pre>
<div class="block">Constructor with options.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the test.</dd><dd><code>haltOnError</code> - if true halt the tests if there is an error.</dd><dd><code>haltOnFailure</code> - if true halt the tests if there is a failure.</dd><dd><code>filtertrace</code> - if true filter stack traces.</dd><dd><code>methods</code> - if non-null run only these test methods</dd><dt><span class="strong">Since:</span></dt>
<dd>1.8.2</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setMethods(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMethods</h4>
<pre>public void setMethods(java.lang.String value)</pre>
<div class="block">Sets names of individual test methods to be executed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - comma-separated list of names of individual test methods
to be executed,
or <code>null</code> if all test methods should be executed</dd><dt><span class="strong">Since:</span></dt>
<dd>1.8.2</dd></dl>
</li>
</ul>
<a name="setName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setName</h4>
<pre>public void setName(java.lang.String value)</pre>
<div class="block">Set the name of the test class.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the name to use.</dd></dl>
</li>
</ul>
<a name="setOutfile(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOutfile</h4>
<pre>public void setOutfile(java.lang.String value)</pre>
<div class="block">Set the name of the output file.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>value</code> - the name of the output file to use.</dd></dl>
</li>
</ul>
<a name="parseTestMethodNamesList(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseTestMethodNamesList</h4>
<pre>public static java.lang.String[] parseTestMethodNamesList(java.lang.String methodNames)
throws java.lang.IllegalArgumentException</pre>
<div class="block">Parses a comma-separated list of method names and check their validity.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>methodNames</code> - comma-separated list of method names to be parsed</dd>
<dt><span class="strong">Returns:</span></dt><dd>array of individual test method names</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if the given string is <code>null</code> or if it is not
a comma-separated list of valid Java identifiers;
an empty string is acceptable and is handled as an empty
list</dd><dt><span class="strong">Since:</span></dt>
<dd>1.8.2</dd></dl>
</li>
</ul>
<a name="getName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getName</h4>
<pre>public java.lang.String getName()</pre>
<div class="block">Get the name of the test class.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the name of the test.</dd></dl>
</li>
</ul>
<a name="getOutfile()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOutfile</h4>
<pre>public java.lang.String getOutfile()</pre>
<div class="block">Get the name of the output file</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the name of the output file.</dd></dl>
</li>
</ul>
<a name="setCounts(long, long, long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCounts</h4>
<pre>public void setCounts(long runs,
long failures,
long errors)</pre>
<div class="block">Set the number of runs, failures and errors.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>runs</code> - the number of runs.</dd><dd><code>failures</code> - the number of failures.</dd><dd><code>errors</code> - the number of errors.</dd></dl>
</li>
</ul>
<a name="setRunTime(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRunTime</h4>
<pre>public void setRunTime(long runTime)</pre>
<div class="block">Set the runtime.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>runTime</code> - the time in milliseconds.</dd></dl>
</li>
</ul>
<a name="runCount()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runCount</h4>
<pre>public long runCount()</pre>
<div class="block">Get the number of runs.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of runs.</dd></dl>
</li>
</ul>
<a name="failureCount()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>failureCount</h4>
<pre>public long failureCount()</pre>
<div class="block">Get the number of failures.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of failures.</dd></dl>
</li>
</ul>
<a name="errorCount()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>errorCount</h4>
<pre>public long errorCount()</pre>
<div class="block">Get the number of errors.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the number of errors.</dd></dl>
</li>
</ul>
<a name="getRunTime()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRunTime</h4>
<pre>public long getRunTime()</pre>
<div class="block">Get the run time.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the run time in milliseconds.</dd></dl>
</li>
</ul>
<a name="getProperties()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getProperties</h4>
<pre>public java.util.Properties getProperties()</pre>
<div class="block">Get the properties used in the test.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the properties.</dd></dl>
</li>
</ul>
<a name="setProperties(java.util.Hashtable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setProperties</h4>
<pre>public void setProperties(java.util.Hashtable p)</pre>
<div class="block">Set the properties to be used in the test.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the properties.
This is a copy of the projects ant properties.</dd></dl>
</li>
</ul>
<a name="shouldRun(org.apache.tools.ant.Project)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldRun</h4>
<pre>public boolean shouldRun(<a href="../../../../../../../org/apache/tools/ant/Project.html" title="class in org.apache.tools.ant">Project</a> p)</pre>
<div class="block">Check if this test should run based on the if and unless
attributes.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>p</code> - the project to use to check if the if and unless
properties exist in.</dd>
<dt><span class="strong">Returns:</span></dt><dd>true if this test or testsuite should be run.</dd></dl>
</li>
</ul>
<a name="getFormatters()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormatters</h4>
<pre>public <a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/FormatterElement.html" title="class in org.apache.tools.ant.taskdefs.optional.junit">FormatterElement</a>[] getFormatters()</pre>
<div class="block">Get the formatters set for this test.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the formatters as an array.</dd></dl>
</li>
</ul>
<a name="clone()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>clone</h4>
<pre>public java.lang.Object clone()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>clone</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>a clone of this test.</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.5</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTaskMirrorImpl.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner.html" title="class in org.apache.tools.ant.taskdefs.optional.junit"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/junit/JUnitTest.html" target="_top">Frames</a></li>
<li><a href="JUnitTest.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#fields_inherited_from_class_org.apache.tools.ant.taskdefs.optional.junit.BaseTest">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>