--- jsr166/src/test/tck/JSR166TestCase.java 2010/09/01 06:41:55 1.51 +++ jsr166/src/test/tck/JSR166TestCase.java 2010/09/13 23:19:31 1.52 @@ -295,6 +295,17 @@ public class JSR166TestCase extends Test } /** + * If arguments not identical, set status to indicate current testcase + * should fail + */ + public void threadAssertSame(Object x, Object y) { + if (x != y) { + threadFailed = true; + assertSame(x, y); + } + } + + /** * threadFail with message "should throw exception" */ public void threadShouldThrow() {