24
24
* </p>
25
25
*
26
26
* @author <a href="mailto:bert@tuaworks.co.nz">Bert van Brakel</a>
27
- *
27
+ * @version $Id: $Id
28
+ * @since 3.4.0
28
29
*/
29
30
public abstract class AbstractTestThread
30
31
implements Runnable
31
32
{
32
33
// ~ Instance fields ----------------------------------------------------------------------------
33
34
private String name ;
34
35
36
+ /** Constant <code>DEBUG=true</code> */
35
37
public static final boolean DEBUG = true ;
36
38
37
39
private boolean isRunning = false ;
@@ -68,6 +70,11 @@ public AbstractTestThread()
68
70
super ();
69
71
}
70
72
73
+ /**
74
+ * <p>Constructor for AbstractTestThread.</p>
75
+ *
76
+ * @param registry a {@link org.codehaus.plexus.util.TestThreadManager} object.
77
+ */
71
78
public AbstractTestThread ( TestThreadManager registry )
72
79
{
73
80
super ();
@@ -77,7 +84,9 @@ public AbstractTestThread( TestThreadManager registry )
77
84
// ~ Methods ------------------------------------------------------------------------------------
78
85
79
86
/**
80
- * @return
87
+ * <p>Getter for the field <code>error</code>.</p>
88
+ *
89
+ * @return a {@link java.lang.Throwable} object.
81
90
*/
82
91
public Throwable getError ()
83
92
{
@@ -129,15 +138,19 @@ public final void start()
129
138
}
130
139
131
140
/**
132
- * @return
141
+ * <p>Getter for the field <code>errorMsg</code>.</p>
142
+ *
143
+ * @return a {@link java.lang.String} object.
133
144
*/
134
145
public String getErrorMsg ()
135
146
{
136
147
return errorMsg ;
137
148
}
138
149
139
150
/**
140
- * @return
151
+ * <p>hasFailed.</p>
152
+ *
153
+ * @return a boolean.
141
154
*/
142
155
public boolean hasFailed ()
143
156
{
@@ -189,15 +202,15 @@ public final void run()
189
202
/**
190
203
* Override this to run your custom test
191
204
*
192
- * @throws Throwable
205
+ * @throws java.lang. Throwable
193
206
*/
194
207
public abstract void doRun ()
195
208
throws Throwable ;
196
209
197
210
/**
198
211
* Set the registry this thread should notify when it has completed running
199
212
*
200
- * @param registry
213
+ * @param registry a {@link org.codehaus.plexus.util.TestThreadManager} object.
201
214
*/
202
215
public void setThreadRegistry ( TestThreadManager registry )
203
216
@@ -208,47 +221,57 @@ public void setThreadRegistry( TestThreadManager registry )
208
221
/**
209
222
* Test if the test has run
210
223
*
211
- * @return
224
+ * @return a boolean.
212
225
*/
213
226
public boolean hasRun ()
214
227
{
215
228
return hasRun ;
216
229
}
217
230
218
231
/**
219
- * @param throwable
232
+ * <p>Setter for the field <code>error</code>.</p>
233
+ *
234
+ * @param throwable a {@link java.lang.Throwable} object.
220
235
*/
221
236
public void setError ( Throwable throwable )
222
237
{
223
238
error = throwable ;
224
239
}
225
240
226
241
/**
227
- * @param string
242
+ * <p>Setter for the field <code>errorMsg</code>.</p>
243
+ *
244
+ * @param string a {@link java.lang.String} object.
228
245
*/
229
246
public void setErrorMsg ( String string )
230
247
{
231
248
errorMsg = string ;
232
249
}
233
250
234
251
/**
235
- * @param b
252
+ * <p>Setter for the field <code>passed</code>.</p>
253
+ *
254
+ * @param b a boolean.
236
255
*/
237
256
public void setPassed ( boolean b )
238
257
{
239
258
passed = b ;
240
259
}
241
260
242
261
/**
243
- * @return
262
+ * <p>Getter for the field <code>name</code>.</p>
263
+ *
264
+ * @return a {@link java.lang.String} object.
244
265
*/
245
266
public String getName ()
246
267
{
247
268
return name ;
248
269
}
249
270
250
271
/**
251
- * @param string
272
+ * <p>Setter for the field <code>name</code>.</p>
273
+ *
274
+ * @param string a {@link java.lang.String} object.
252
275
*/
253
276
public void setName ( String string )
254
277
{
0 commit comments