36 |
|
* them. These methods are used to clear and check for thread |
37 |
|
* assertion failures.</li> |
38 |
|
* |
39 |
< |
* <li>All delays and timeouts must use one of the constants {@code |
39 |
> |
* <li>All delays and timeouts must use one of the constants {@code |
40 |
|
* SHORT_DELAY_MS}, {@code SMALL_DELAY_MS}, {@code MEDIUM_DELAY_MS}, |
41 |
|
* {@code LONG_DELAY_MS}. The idea here is that a SHORT is always |
42 |
|
* discriminable from zero time, and always allows enough time for the |
294 |
|
} |
295 |
|
} |
296 |
|
|
297 |
+ |
/** |
298 |
+ |
* If arguments not identical, set status to indicate current testcase |
299 |
+ |
* should fail |
300 |
+ |
*/ |
301 |
+ |
public void threadAssertSame(Object x, Object y) { |
302 |
+ |
if (x != y) { |
303 |
+ |
threadFailed = true; |
304 |
+ |
assertSame(x, y); |
305 |
+ |
} |
306 |
+ |
} |
307 |
+ |
|
308 |
|
/** |
309 |
|
* threadFail with message "should throw exception" |
310 |
|
*/ |