org.ourgrid.common.executor
Class ExecutorFactoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.ourgrid.common.executor.ExecutorFactoryTest
All Implemented Interfaces:
junit.framework.Test, FastTest, PreCommitTest, ReplicaExecutorFastTest, ReplicaExecutorPreCommitTest, SelectiveTest, StressTest

public class ExecutorFactoryTest
extends junit.framework.TestCase
implements ReplicaExecutorFastTest

This class is the test suite for the ExecutorFactory class.

Author:
Elizeu Santos-Neto, elizeu@dsc.ufcg.edu.br

Constructor Summary
ExecutorFactoryTest(java.lang.String name)
          This method constructs a new instance of ExecutorFactoryTest suite class.
 
Method Summary
protected  void setUp()
          Set the environment before starting the tests!
protected  void tearDown()
          Just clean the evironment before dying!
 void testGetInstance()
          This method test the get instance method.
 void testGetInstanceMultiThreaded()
          This method test the get instance method.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 
Methods inherited from interface junit.framework.Test
countTestCases, run
 

Constructor Detail

ExecutorFactoryTest

public ExecutorFactoryTest(java.lang.String name)
This method constructs a new instance of ExecutorFactoryTest suite class.

Parameters:
name - The name of class file that corresponds to this test suite.
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Set the environment before starting the tests!

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Just clean the evironment before dying!

Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testGetInstance

public void testGetInstance()
                     throws java.lang.Exception
This method test the get instance method. In order to guarantee the instance is the same. A simple but necessary test!

Throws:
java.lang.Exception

testGetInstanceMultiThreaded

public void testGetInstanceMultiThreaded()
                                  throws java.lang.Exception
This method test the get instance method. In order to guarantee the instance is the same. A simple but necessary test!

Throws:
java.lang.Exception