org.ourgrid.common.executor
Class LinuxExecutorTest

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

public class LinuxExecutorTest
extends junit.framework.TestCase
implements ReplicaExecutorFastTest

This class is the test suite for the LinuxExecutor class.


Constructor Summary
LinuxExecutorTest(java.lang.String name)
          This method constructs a new instance of LinuxExecutor class.
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testBadExecute()
          This method tests the verification of a bad execution of native command.
 void testChmod1()
          This method test the modification of permissions feature.
 void testChmod10()
           
 void testChmod11()
           
 void testChmod12()
           
 void testChmod13()
           
 void testChmod14()
          Tests if the chmod feature performs well when receiving a bad permission.
 void testChmod2()
           
 void testChmod3()
           
 void testChmod4()
           
 void testChmod5()
           
 void testChmod6()
           
 void testChmod7()
           
 void testChmod8()
           
 void testChmod9()
           
 void testExecuteWithoutVariables()
          Test an execution that uses environment variables but these are not set
 void testExecuteWithVariables()
          This method tests the execution of native commands that are dependent of environment variables.
 void testGoodExecute()
          This method test if an expected correct execution will be performed well indeed.
 void testHandleManagement()
          Test the handle management
 void testKill()
          Test the kill operation
 void testKillEqualsCommands()
          Test the kill operation
 void testNotPermitedLocalExecute()
          Test if a permission denied is detected during the execution
 void testTwoExecuteInvocations()
          This method tests the execution of native commands that are dependent of environment variables.
 
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

LinuxExecutorTest

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

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

setUp

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

tearDown

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

testGoodExecute

public void testGoodExecute()
                     throws java.lang.Exception
This method test if an expected correct execution will be performed well indeed.

Throws:
java.lang.Exception

testBadExecute

public void testBadExecute()
                    throws java.lang.Exception
This method tests the verification of a bad execution of native command.

Throws:
java.lang.Exception

testExecuteWithVariables

public void testExecuteWithVariables()
                              throws java.lang.Exception
This method tests the execution of native commands that are dependent of environment variables.

Throws:
java.lang.Exception

testTwoExecuteInvocations

public void testTwoExecuteInvocations()
                               throws java.lang.Exception
This method tests the execution of native commands that are dependent of environment variables.

Throws:
java.lang.Exception

testExecuteWithoutVariables

public void testExecuteWithoutVariables()
                                 throws java.lang.Exception
Test an execution that uses environment variables but these are not set

Throws:
java.lang.Exception

testNotPermitedLocalExecute

public void testNotPermitedLocalExecute()
                                 throws java.lang.Exception
Test if a permission denied is detected during the execution

Throws:
java.lang.Exception

testHandleManagement

public void testHandleManagement()
                          throws java.lang.Exception
Test the handle management

Throws:
java.lang.Exception

testChmod1

public void testChmod1()
                throws java.lang.Exception
This method test the modification of permissions feature.

Throws:
java.lang.Exception

testChmod2

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

testChmod3

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

testChmod4

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

testChmod5

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

testChmod6

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

testChmod7

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

testChmod8

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

testChmod9

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

testChmod10

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

testChmod11

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

testChmod12

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

testChmod13

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

testChmod14

public void testChmod14()
                 throws java.lang.Exception
Tests if the chmod feature performs well when receiving a bad permission.

Throws:
java.lang.Exception

testKill

public void testKill()
              throws java.lang.Exception
Test the kill operation

Throws:
java.lang.Exception

testKillEqualsCommands

public void testKillEqualsCommands()
                            throws java.lang.Exception
Test the kill operation

Throws:
java.lang.Exception