--- jsr166/src/test/tck/JSR166TestCase.java 2010/08/25 21:40:03 1.50 +++ jsr166/src/test/tck/JSR166TestCase.java 2010/09/13 23:19:31 1.52 @@ -36,7 +36,7 @@ import java.security.*; * them. These methods are used to clear and check for thread * assertion failures. * - *
  • All delays and timeouts must use one of the constants {@code + *
  • All delays and timeouts must use one of the constants {@code * SHORT_DELAY_MS}, {@code SMALL_DELAY_MS}, {@code MEDIUM_DELAY_MS}, * {@code LONG_DELAY_MS}. The idea here is that a SHORT is always * discriminable from zero time, and always allows enough time for the @@ -294,6 +294,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" */