jdk/test/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java
changeset 13415 0430f69eed3b
parent 5506 202f599c92aa
child 14342 8435a30053c1
--- a/jdk/test/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java	Wed Aug 08 12:37:02 2012 +0100
+++ b/jdk/test/java/nio/channels/AsynchronousChannelGroup/AsExecutor.java	Wed Aug 08 15:31:22 2012 +0100
@@ -37,24 +37,30 @@
             .withFixedThreadPool(5, factory);
         AsynchronousChannelGroup group2 = AsynchronousChannelGroup
             .withCachedThreadPool(Executors.newCachedThreadPool(factory), 0);
+        AsynchronousChannelGroup group3 = AsynchronousChannelGroup
+            .withThreadPool(Executors.newFixedThreadPool(10, factory));
 
         try {
             // execute simple tasks
             testSimpleTask(group1);
             testSimpleTask(group2);
+            testSimpleTask(group3);
 
             // install security manager and test again
             System.setSecurityManager( new SecurityManager() );
             testSimpleTask(group1);
             testSimpleTask(group2);
+            testSimpleTask(group3);
 
             // attempt to execute tasks that run with only frames from boot
             // class loader on the stack.
             testAttackingTask(group1);
             testAttackingTask(group2);
+            testAttackingTask(group3);
         } finally {
             group1.shutdown();
             group2.shutdown();
+            group3.shutdown();
         }
     }