1package org.testng.internal.annotations;
2
3import org.testng.annotations.ITestOrConfiguration;
4
5public class TestOrConfiguration
6  extends BaseAnnotation
7  implements ITestOrConfiguration
8{
9  private String[] m_parameters = {};
10  private String[] m_groups = {};
11  private boolean m_enabled = true;
12  private String[] m_dependsOnGroups = {};
13  private String[] m_dependsOnMethods = {};
14  private String m_description = "";
15  private int m_priority;
16  private long m_timeOut = 0;
17
18  @Override
19  public String[] getGroups() {
20    return m_groups;
21  }
22
23  @Override
24  public boolean getEnabled() {
25    return m_enabled;
26  }
27
28  @Override
29  public void setDependsOnGroups(String[] dependsOnGroups) {
30    m_dependsOnGroups = dependsOnGroups;
31  }
32
33  @Override
34  public void setDependsOnMethods(String[] dependsOnMethods) {
35    m_dependsOnMethods = dependsOnMethods;
36  }
37
38  @Override
39  public void setGroups(String[] groups) {
40    m_groups = groups;
41  }
42
43  @Override
44  public String getDescription() {
45    return m_description;
46  }
47
48  @Override
49  public void setEnabled(boolean enabled) {
50    m_enabled = enabled;
51  }
52
53  @Override
54  public String[] getDependsOnGroups() {
55    return m_dependsOnGroups;
56  }
57
58  @Override
59  public String[] getDependsOnMethods() {
60    return m_dependsOnMethods;
61  }
62
63  @Override
64  public String[] getParameters() {
65    return m_parameters;
66  }
67
68  public void setParameters(String[] parameters) {
69    m_parameters = parameters;
70  }
71
72  @Override
73  public void setDescription(String description) {
74    m_description = description;
75  }
76
77  public int getPriority() {
78    return m_priority;
79  }
80
81  public void setPriority(int priority) {
82    m_priority = priority;
83  }
84
85  @Override
86  public void setTimeOut(long timeOut) {
87    m_timeOut = timeOut;
88  }
89
90  @Override
91  public long getTimeOut() {
92    return m_timeOut;
93  }
94}
95