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

Comparing jsr166/src/test/tck/PhaserTest.java (file contents):
Revision 1.2 by jsr166, Fri Jul 31 23:37:31 2009 UTC vs.
Revision 1.4 by jsr166, Sat Aug 1 22:09:13 2009 UTC

# Line 88 | Line 88 | public class PhaserTest extends JSR166Te
88      }
89  
90      /**
91 <     * Registering any more then 65536 parties causes IllegalStateExceptiom
91 >     * Registering more than 65536 parties causes IllegalStateException
92       */
93      public void testRegister2() {
94          Phaser phaser = new Phaser(0);
# Line 137 | Line 137 | public class PhaserTest extends JSR166Te
137  
138      /**
139       * Invoking bulkRegister with a negative parameter throws an
140 <     * IllegalArgumentExceptiom
140 >     * IllegalArgumentException
141       */
142      public void testBulkRegister1() {
143          try {
# Line 158 | Line 158 | public class PhaserTest extends JSR166Te
158      }
159  
160      /**
161 <     * Registering with a number of parties greater then or equal to 1<<16
162 <     * throws IllegalStateExceptiom.
161 >     * Registering with a number of parties greater than or equal to 1<<16
162 >     * throws IllegalStateException.
163       */
164      public void testBulkRegister3() {
165          try {
# Line 216 | Line 216 | public class PhaserTest extends JSR166Te
216      }
217  
218      /**
219 <     * arrive() returns a negative number if the Phaser is termindated
219 >     * arrive() returns a negative number if the Phaser is terminated
220       */
221      public void testArrive3() {
222          Phaser phaser = new Phaser(1);
# Line 227 | Line 227 | public class PhaserTest extends JSR166Te
227  
228      /**
229       * arriveAndDeregister() throws IllegalStateException if number of
230 <     * registered or unnarived parties would become negative
230 >     * registered or unarrived parties would become negative
231       */
232      public void testArriveAndDeregister1() {
233          try {
# Line 240 | Line 240 | public class PhaserTest extends JSR166Te
240      }
241  
242      /**
243 <     * arriveAndDeregister derigisters reduces the number of arrived parties
243 >     * arriveAndDeregister deregisters reduces the number of arrived parties
244       */
245      public void testArriveAndDergeister2() {
246          final Phaser phaser = new Phaser(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines