>
<h4>addFailure</h4>
<pre>public&nbsp;void&nbsp;addFailure(junit.framework.Test&nbsp;test,
              junit.framework.AssertionFailedError&nbsp;t)</pre>
<div class="block">Interface TestListener for JUnit &gt; 3.4.

 <p>A Test failed.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>addFailure</code>&nbsp;in interface&nbsp;<code>junit.framework.TestListener</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>test</code> - the test.</dd><dd><code>t</code> - the assertion thr