# | Line 18 | Line 18 | import junit.framework.TestSuite; | |
---|---|---|
18 | ||
19 | public class SemaphoreTest extends JSR166TestCase { | |
20 | public static void main(String[] args) { | |
21 | < | junit.textui.TestRunner.run(suite()); |
21 | > | main(suite(), args); |
22 | } | |
23 | public static Test suite() { | |
24 | return new TestSuite(SemaphoreTest.class); | |
# | Line 616 | Line 616 | public class SemaphoreTest extends JSR16 | |
616 | assertTrue(t2.isAlive()); | |
617 | s.release(); | |
618 | awaitTermination(t2); | |
619 | < | } |
619 | > | } |
620 | ||
621 | /** | |
622 | * toString indicates current number of permits |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |