|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.springframework.batch.sample.tasklet.SystemCommandTaskletIntegrationTests
public class SystemCommandTaskletIntegrationTests
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 |
---|
public SystemCommandTaskletIntegrationTests()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testExecute() throws Exception
Exception
public void testExecuteFailure() throws Exception
Exception
public void testExecuteTimeout() throws Exception
Exception
public void testInterruption() throws Exception
Exception
public void testCommandNotSet() throws Exception
Exception
public void testTimeoutNotSet() throws Exception
Exception
public void testWorkingDirectory() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |