All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.SuiteRunState Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
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();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy