org.testng.SuiteRunState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
A testing framework for the JVM
package org.testng;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* A state object that records the status of the suite run. Mainly used to
* figure out if there are any @BeforeSuite failures.
*/
public class SuiteRunState {
private final AtomicBoolean m_hasFailures = new AtomicBoolean();
public void failed() {
m_hasFailures.set(true);
}
public boolean isFailed() {
return m_hasFailures.get();
}
}