[cvs] / jsr166 / src / test / tck / AbstractQueuedSynchronizerTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/AbstractQueuedSynchronizerTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24, Mon Nov 16 05:30:07 2009 UTC revision 1.25, Tue Nov 17 13:40:14 2009 UTC
# Line 671  Line 671 
671       */       */
672      public void testHasWaitersIAE() {      public void testHasWaitersIAE() {
673          final Mutex sync = new Mutex();          final Mutex sync = new Mutex();
674          final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());          final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
675          final Mutex sync2 = new Mutex();          final Mutex sync2 = new Mutex();
676          try {          try {
677              sync2.hasWaiters(c);              sync2.hasWaiters(c);
# Line 687  Line 687 
687       */       */
688      public void testHasWaitersIMSE() {      public void testHasWaitersIMSE() {
689          final Mutex sync = new Mutex();          final Mutex sync = new Mutex();
690          final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());          final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
691          try {          try {
692              sync.hasWaiters(c);              sync.hasWaiters(c);
693              shouldThrow();              shouldThrow();
# Line 703  Line 703 
703       */       */
704      public void testGetWaitQueueLengthIAE() {      public void testGetWaitQueueLengthIAE() {
705          final Mutex sync = new Mutex();          final Mutex sync = new Mutex();
706          final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());          final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
707          final Mutex sync2 = new Mutex();          final Mutex sync2 = new Mutex();
708          try {          try {
709              sync2.getWaitQueueLength(c);              sync2.getWaitQueueLength(c);
# Line 719  Line 719 
719       */       */
720      public void testGetWaitQueueLengthIMSE() {      public void testGetWaitQueueLengthIMSE() {
721          final Mutex sync = new Mutex();          final Mutex sync = new Mutex();
722          final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());          final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
723          try {          try {
724              sync.getWaitQueueLength(c);              sync.getWaitQueueLength(c);
725              shouldThrow();              shouldThrow();
# Line 735  Line 735 
735       */       */
736      public void testGetWaitingThreadsIAE() {      public void testGetWaitingThreadsIAE() {
737          final Mutex sync = new Mutex();          final Mutex sync = new Mutex();
738          final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());          final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
739          final Mutex sync2 = new Mutex();          final Mutex sync2 = new Mutex();
740          try {          try {
741              sync2.getWaitingThreads(c);              sync2.getWaitingThreads(c);
# Line 751  Line 751 
751       */       */
752      public void testGetWaitingThreadsIMSE() {      public void testGetWaitingThreadsIMSE() {
753          final Mutex sync = new Mutex();          final Mutex sync = new Mutex();
754          final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());          final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
755          try {          try {
756              sync.getWaitingThreads(c);              sync.getWaitingThreads(c);
757              shouldThrow();              shouldThrow();

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8