01: package org.testng.internal.annotations;
02:
03: /**
04: * This interface captures methods common to @Test and @Configuration
05: *
06: * Created on Dec 20, 2005
07: * @author <a href="mailto:cedric@beust.com">Cedric Beust</a>
08: */
09: public interface ITestOrConfiguration extends IParameterizable {
10: /**
11: * The list of groups this class/method belongs to.
12: */
13: public String[] getGroups();
14:
15: public void setGroups(String[] groups);
16:
17: /**
18: * The list of groups this method depends on. Every method
19: * member of one of these groups is guaranteed to have been
20: * invoked before this method. Furthermore, if any of these
21: * methods was not a SUCCESS, this test method will not be
22: * run and will be flagged as a SKIP.
23: */
24: public String[] getDependsOnGroups();
25:
26: public void setDependsOnGroups(String[] groups);
27:
28: /**
29: * The list of methods this method depends on. There is no guarantee
30: * on the order on which the methods depended upon will be run, but you
31: * are guaranteed that all these methods will be run before the test method
32: * that contains this annotation is run. Furthermore, if any of these
33: * methods was not a SUCCESS, this test method will not be
34: * run and will be flagged as a SKIP.
35: *
36: * If some of these methods have been overloaded, all the overloaded
37: * versions will be run.
38: */
39: public String[] getDependsOnMethods();
40:
41: public void setDependsOnMethods(String[] dependsOnMethods);
42:
43: /**
44: * Whether methods on this class/method are enabled.
45: */
46: public boolean getEnabled();
47:
48: /**
49: * The description for this method, which will be shown in the reports.
50: */
51: public String getDescription();
52:
53: }
|