Reset checking for successful test every test setUp.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366443 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrian T. Co 2006-01-06 07:13:28 +00:00
parent d265b31385
commit 6285f96b15
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class AutoFailTestSupport extends TestCase {
private boolean verbose = true;
private boolean useAutoFail = false; // Disable auto fail by default
private AtomicBoolean isTestSuccess = new AtomicBoolean(false);
private AtomicBoolean isTestSuccess;
protected void setUp() throws Exception {
// Runs the auto fail thread before performing any setup
@ -63,6 +63,7 @@ public class AutoFailTestSupport extends TestCase {
*/
public void startAutoFailThread() {
setAutoFail(true);
isTestSuccess = new AtomicBoolean(false);
autoFailThread = new Thread(new Runnable() {
public void run() {
try {