• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.testng;
2 
3 import java.io.Serializable;
4 
5 
6 /**
7  * A state object that records the status of the suite run. Mainly used to
8  * figure out if there are any @BeforeSuite failures.
9  *
10  * @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
11  */
12 public class SuiteRunState implements Serializable {
13   /**
14    *
15    */
16   private static final long serialVersionUID = -2716934905049123874L;
17   private boolean m_hasFailures;
18 
failed()19   public synchronized void failed() {
20     m_hasFailures= true;
21   }
22 
isFailed()23   public synchronized boolean isFailed() {
24     return m_hasFailures;
25   }
26 }
27