org.springframework.batch.sample.tasklet
Class SystemCommandTaskletIntegrationTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.batch.sample.tasklet.SystemCommandTaskletIntegrationTests
All Implemented Interfaces:
junit.framework.Test

public class SystemCommandTaskletIntegrationTests
extends junit.framework.TestCase

Tests for SystemCommandTasklet.


Constructor Summary
SystemCommandTaskletIntegrationTests()
           
 
Method Summary
protected  void setUp()
           
 void testCommandNotSet()
          Command property value is required to be set.
 void testExecute()
          Regular usage scenario - successful execution of system command.
 void testExecuteFailure()
          Failed execution scenario - error exit code returned by system command.
 void testExecuteTimeout()
          Failed execution scenario - execution time exceeds timeout.
 void testInterruption()
          Job interrupted scenario.
 void testTimeoutNotSet()
          Timeout must be set to non-zero value.
 void testWorkingDirectory()
          Working directory property must point to an existing location and it must be a directory
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemCommandTaskletIntegrationTests

public SystemCommandTaskletIntegrationTests()
Method Detail

setUp

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

testExecute

public void testExecute()
                 throws Exception
Regular usage scenario - successful execution of system command.

Throws:
Exception

testExecuteFailure

public void testExecuteFailure()
                        throws Exception
Failed execution scenario - error exit code returned by system command.

Throws:
Exception

testExecuteTimeout

public void testExecuteTimeout()
                        throws Exception
Failed execution scenario - execution time exceeds timeout.

Throws:
Exception

testInterruption

public void testInterruption()
                      throws Exception
Job interrupted scenario.

Throws:
Exception

testCommandNotSet

public void testCommandNotSet()
                       throws Exception
Command property value is required to be set.

Throws:
Exception

testTimeoutNotSet

public void testTimeoutNotSet()
                       throws Exception
Timeout must be set to non-zero value.

Throws:
Exception

testWorkingDirectory

public void testWorkingDirectory()
                          throws Exception
Working directory property must point to an existing location and it must be a directory

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.