01: package org.testng;
02:
03: import java.io.Serializable;
04:
05: /**
06: * A state object that records the status of the suite run. Mainly used to
07: * figure out if there are any @BeforeSuite failures.
08: *
09: * @author <a href='mailto:the_mindstorm[at]evolva[dot]ro'>Alexandru Popescu</a>
10: */
11: public class SuiteRunState implements Serializable {
12: private boolean m_hasFailures;
13:
14: public synchronized void failed() {
15: m_hasFailures = true;
16: }
17:
18: public synchronized boolean isFailed() {
19: return m_hasFailures;
20: }
21: }
|