mirror of https://github.com/apache/activemq.git
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:
parent
d265b31385
commit
6285f96b15
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue