# | Line 295 | Line 295 | public class JSR166TestCase extends Test | |
---|---|---|
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 | */ | |
311 | public void threadShouldThrow() { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |