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

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

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

revision 1.45, Mon Oct 17 01:57:00 2016 UTC revision 1.46, Mon Oct 17 15:27:57 2016 UTC
# Line 14  Line 14 
14  import java.util.NoSuchElementException;  import java.util.NoSuchElementException;
15  import java.util.Queue;  import java.util.Queue;
16  import java.util.Random;  import java.util.Random;
17    import java.util.Spliterator;
18  import java.util.concurrent.ThreadLocalRandom;  import java.util.concurrent.ThreadLocalRandom;
19    
20  import junit.framework.Test;  import junit.framework.Test;
# Line 989  Line 990 
990      }      }
991    
992      /**      /**
993         * Spliterator characteristics are as advertised
994         */
995        public void testSpliterator_characteristics() {
996            ArrayDeque q = new ArrayDeque();
997            Spliterator s = q.spliterator();
998            int characteristics = s.characteristics();
999            int required = Spliterator.NONNULL
1000                | Spliterator.ORDERED
1001                | Spliterator.SIZED
1002                | Spliterator.SUBSIZED;
1003            assertEquals(required, characteristics & required);
1004            assertEquals(0, characteristics
1005                         & (Spliterator.CONCURRENT
1006                            | Spliterator.DISTINCT
1007                            | Spliterator.IMMUTABLE
1008                            | Spliterator.SORTED));
1009        }
1010    
1011        /**
1012       * Handle capacities near Integer.MAX_VALUE.       * Handle capacities near Integer.MAX_VALUE.
1013       * ant -Dvmoptions=-Xmx24g -Djsr166.expensiveTests=true -Djsr166.tckTestClass=ArrayDequeTest -Djsr166.methodFilter=testHuge tck       * ant -Dvmoptions=-Xmx24g -Djsr166.expensiveTests=true -Djsr166.tckTestClass=ArrayDequeTest -Djsr166.methodFilter=testHuge tck
1014       */       */

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8