ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/CountDownLatchTest.java
(Generate patch)

Comparing jsr166/src/test/tck/CountDownLatchTest.java (file contents):
Revision 1.17 by dl, Fri May 6 11:22:07 2011 UTC vs.
Revision 1.18 by jsr166, Tue May 24 23:35:40 2011 UTC

# Line 154 | Line 154 | public class CountDownLatchTest extends
154       */
155      public void testToString() {
156          CountDownLatch s = new CountDownLatch(2);
157 <        String us = s.toString();
158 <        assertTrue(us.indexOf("Count = 2") >= 0);
157 >        assertTrue(s.toString().contains("Count = 2"));
158          s.countDown();
159 <        String s1 = s.toString();
161 <        assertTrue(s1.indexOf("Count = 1") >= 0);
159 >        assertTrue(s.toString().contains("Count = 1"));
160          s.countDown();
161 <        String s2 = s.toString();
164 <        assertTrue(s2.indexOf("Count = 0") >= 0);
161 >        assertTrue(s.toString().contains("Count = 0"));
162      }
163  
164   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines