org.alfresco.util
Class DynamicallySizedThreadPoolExecutorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.util.DynamicallySizedThreadPoolExecutorTest
All Implemented Interfaces:
junit.framework.Test

public class DynamicallySizedThreadPoolExecutorTest
extends junit.framework.TestCase

Tests for our instance of ThreadPoolExecutor


Nested Class Summary
static class DynamicallySizedThreadPoolExecutorTest.SleepUntilAllWake
           
 
Constructor Summary
DynamicallySizedThreadPoolExecutorTest()
           
 
Method Summary
 void offTestToExpandThenContract()
           
protected  void setUp()
           
 void testPastCoreButNotHugeQueue()
           
 void testToExpandQueue()
           
 void testUpToCore()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicallySizedThreadPoolExecutorTest

public DynamicallySizedThreadPoolExecutorTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testUpToCore

public void testUpToCore()
                  throws java.lang.Exception
Throws:
java.lang.Exception

testPastCoreButNotHugeQueue

public void testPastCoreButNotHugeQueue()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testToExpandQueue

public void testToExpandQueue()
                       throws java.lang.Exception
Throws:
java.lang.Exception

offTestToExpandThenContract

public void offTestToExpandThenContract()
                                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.