~ubuntu-branches/ubuntu/utopic/testng/utopic

« back to all changes in this revision

Viewing changes to src/main/org/testng/internal/annotations/IBaseBeforeAfter.java

  • Committer: Bazaar Package Importer
  • Author(s): Marcus Better
  • Date: 2009-05-04 10:47:43 UTC
  • Revision ID: james.westby@ubuntu.com-20090504104743-1gbwsis9q1fh3aaj
Tags: upstream-5.9+dfsg
ImportĀ upstreamĀ versionĀ 5.9+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.testng.internal.annotations;
 
2
 
 
3
/**
 
4
 * Base interface for IBeforeSuite, IAfterSuite, etc...
 
5
 * 
 
6
 * @author cbeust
 
7
 * @date Jun 22, 2006
 
8
 */
 
9
public interface IBaseBeforeAfter {
 
10
  /**
 
11
   * Whether methods on this class/method are enabled.
 
12
   */
 
13
  public boolean getEnabled();  
 
14
  
 
15
  /**
 
16
   * The list of groups this class/method belongs to. 
 
17
   */
 
18
  public String[] getGroups();
 
19
 
 
20
  /**
 
21
   * The list of groups this method depends on.  Every method
 
22
   * member of one of these groups is guaranteed to have been
 
23
   * invoked before this method.  Furthermore, if any of these
 
24
   * methods was not a SUCCESS, this test method will not be
 
25
   * run and will be flagged as a SKIP.  
 
26
   */
 
27
  public String[] getDependsOnGroups();
 
28
  
 
29
  /**
 
30
   * The list of methods this method depends on.  There is no guarantee
 
31
   * on the order on which the methods depended upon will be run, but you
 
32
   * are guaranteed that all these methods will be run before the test method
 
33
   * that contains this annotation is run.  Furthermore, if any of these
 
34
   * methods was not a SUCCESS, this test method will not be
 
35
   * run and will be flagged as a SKIP.  
 
36
   * 
 
37
   *  If some of these methods have been overloaded, all the overloaded
 
38
   *  versions will be run.
 
39
   */
 
40
  public String[] getDependsOnMethods();
 
41
 
 
42
  /**
 
43
   *  For before methods (beforeSuite, beforeTest, beforeTestClass and
 
44
   *  beforeTestMethod, but not beforeGroups):
 
45
   *  If set to true, this configuration method will be run
 
46
   *  regardless of what groups it belongs to. 
 
47
   *  <br>
 
48
   * For after methods (afterSuite, afterClass, ...): 
 
49
   *  If set to true, this configuration method will be run
 
50
   *  even if one or more methods invoked previously failed or
 
51
   *  was skipped.
 
52
   */
 
53
  public boolean getAlwaysRun();
 
54
  
 
55
  /**
 
56
   * If true, this &#64;Configuration method will belong to groups specified in the
 
57
   * &#64;Test annotation on the class (if any).
 
58
   */
 
59
  public boolean getInheritGroups();
 
60
 
 
61
  /**
 
62
   * The description for this method.  The string used will appear in the
 
63
   * HTML report and also on standard output if verbose >= 2.
 
64
   */
 
65
  public String getDescription();
 
66
 
 
67
}