View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.1 on 2011-09-18 14:33:27,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.continuum.model.scm.v1_0_9;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.apache.maven.continuum.model.project.v1_0_9.BuildDefinition;
15  import org.apache.maven.continuum.model.project.v1_0_9.BuildResult;
16  import org.apache.maven.continuum.model.project.v1_0_9.ContinuumDatabase;
17  import org.apache.maven.continuum.model.project.v1_0_9.Project;
18  import org.apache.maven.continuum.model.project.v1_0_9.ProjectDependency;
19  import org.apache.maven.continuum.model.project.v1_0_9.ProjectDeveloper;
20  import org.apache.maven.continuum.model.project.v1_0_9.ProjectGroup;
21  import org.apache.maven.continuum.model.project.v1_0_9.ProjectNotifier;
22  import org.apache.maven.continuum.model.project.v1_0_9.Schedule;
23  import org.apache.maven.continuum.model.system.v1_0_9.NotificationAddress;
24  import org.apache.maven.continuum.model.system.v1_0_9.SystemConfiguration;
25  
26  /**
27   * Class TestResult.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class TestResult
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * Field testCount.
42       */
43      private int testCount = 0;
44  
45      /**
46       * Field failureCount.
47       */
48      private int failureCount = 0;
49  
50      /**
51       * Field totalTime.
52       */
53      private long totalTime = 0L;
54  
55      /**
56       * Field suiteResults.
57       */
58      private java.util.List<SuiteResult> suiteResults;
59  
60  
61        //-----------/
62       //- Methods -/
63      //-----------/
64  
65      /**
66       * Method addSuiteResult.
67       * 
68       * @param suiteResult
69       */
70      public void addSuiteResult( SuiteResult suiteResult )
71      {
72          getSuiteResults().add( suiteResult );
73      } //-- void addSuiteResult( SuiteResult )
74  
75      /**
76       * Get the failureCount field.
77       * 
78       * @return int
79       */
80      public int getFailureCount()
81      {
82          return this.failureCount;
83      } //-- int getFailureCount()
84  
85      /**
86       * Method getSuiteResults.
87       * 
88       * @return List
89       */
90      public java.util.List<SuiteResult> getSuiteResults()
91      {
92          if ( this.suiteResults == null )
93          {
94              this.suiteResults = new java.util.ArrayList<SuiteResult>();
95          }
96  
97          return this.suiteResults;
98      } //-- java.util.List<SuiteResult> getSuiteResults()
99  
100     /**
101      * Get the testCount field.
102      * 
103      * @return int
104      */
105     public int getTestCount()
106     {
107         return this.testCount;
108     } //-- int getTestCount()
109 
110     /**
111      * Get the totalTime field.
112      * 
113      * @return long
114      */
115     public long getTotalTime()
116     {
117         return this.totalTime;
118     } //-- long getTotalTime()
119 
120     /**
121      * Method removeSuiteResult.
122      * 
123      * @param suiteResult
124      */
125     public void removeSuiteResult( SuiteResult suiteResult )
126     {
127         getSuiteResults().remove( suiteResult );
128     } //-- void removeSuiteResult( SuiteResult )
129 
130     /**
131      * Set the failureCount field.
132      * 
133      * @param failureCount
134      */
135     public void setFailureCount( int failureCount )
136     {
137         this.failureCount = failureCount;
138     } //-- void setFailureCount( int )
139 
140     /**
141      * Set the suiteResults field.
142      * 
143      * @param suiteResults
144      */
145     public void setSuiteResults( java.util.List<SuiteResult> suiteResults )
146     {
147         this.suiteResults = suiteResults;
148     } //-- void setSuiteResults( java.util.List )
149 
150     /**
151      * Set the testCount field.
152      * 
153      * @param testCount
154      */
155     public void setTestCount( int testCount )
156     {
157         this.testCount = testCount;
158     } //-- void setTestCount( int )
159 
160     /**
161      * Set the totalTime field.
162      * 
163      * @param totalTime
164      */
165     public void setTotalTime( long totalTime )
166     {
167         this.totalTime = totalTime;
168     } //-- void setTotalTime( long )
169 
170 }