1   package com.atlassian.maven.plugins.amps;
2   
3   import java.util.Collections;
4   import java.util.List;
5   import java.util.Map;
6   
7   /**
8    * A group of tests to run for the given product identifiers
9    *
10   * @since 3.1
11   */
12  public class TestGroup
13  {
14      private String id;
15      private List<String> instanceIds;
16      private List<String> includes;
17      private List<String> excludes;
18      private Map<String, String> systemProperties;
19  
20      /**
21       * Name of the folder in which integration test results should be written:
22       * target/testGroup/classifier/surefire-reports. It used to always be tomcat6x.
23       */
24      private String classifier;
25  
26      public String getId()
27      {
28          return id;
29      }
30  
31      public void setId(String id)
32      {
33          this.id = id;
34      }
35  
36      /**
37       * @deprecated As of 3.8, replaced by {@link TestGroup#setInstanceIds(List)}
38       */
39      public void setProductIds(List<String> products)
40      {
41          this.instanceIds = products;
42      }
43  
44      public List<String> getInstanceIds()
45      {
46          return instanceIds;
47      }
48  
49      public void setInstanceIds(List<String> instanceIds)
50      {
51          this.instanceIds = instanceIds;
52      }
53  
54  
55  
56      public List<String> getIncludes()
57      {
58          return (includes == null) ? Collections.<String>emptyList() : includes;
59      }
60  
61      /**
62       * @param includes The file patterns to include
63       */
64      public void setIncludes(List<String> includes)
65      {
66          this.includes = includes;
67      }
68  
69      public List<String> getExcludes()
70      {
71          return (excludes == null) ? Collections.<String>emptyList() : excludes;
72      }
73  
74      /**
75       * @param excludes The file patterns to exclude
76       */
77      public void setExcludes(List<String> excludes)
78      {
79          this.excludes = excludes;
80      }
81      public Map<String, String> getSystemProperties()
82      {
83          return (systemProperties == null) ? Collections.<String, String>emptyMap() : systemProperties;
84      }
85      public void setSystemProperties(Map<String, String> systemProperties)
86      {
87          this.systemProperties = systemProperties;
88      }
89  
90      public String getClassifier()
91      {
92          return classifier;
93      }
94  
95      public void setClassifier(String classifier)
96      {
97          this.classifier = classifier;
98      }
99  
100 }