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