|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.springframework.batch.item.file.FlatFileItemWriterTests
public class FlatFileItemWriterTests
Tests of regular usage for FlatFileItemWriter
Exception cases will be
in separate TestCase classes with different setUp
and
tearDown
methods
Constructor Summary | |
---|---|
FlatFileItemWriterTests()
|
Method Summary | |
---|---|
protected void |
setUp()
Create temporary output file, define mock behaviour, set dependencies and initialize the object under test |
protected void |
tearDown()
Release resources and delete the temporary output file |
void |
testAfterPropertiesSetChecksMandatory()
|
void |
testCommit()
|
void |
testDefaultStreamContext()
|
void |
testOpenWithNonWritableFile()
|
void |
testRestart()
|
void |
testRollback()
|
void |
testWriteRecord()
Regular usage of write(String[], LineDescriptor) method |
void |
testWriteString()
Regular usage of write(String) method |
void |
testWriteStringWithBogusEncoding()
Regular usage of write(String) method |
void |
testWriteStringWithEncodingAfterClose()
Regular usage of write(String) method |
void |
testWriteWithConverter()
Regular usage of write(String) method |
void |
testWriteWithConverterAndInfiniteLoop()
Regular usage of write(String) method |
void |
testWriteWithConverterAndString()
Regular usage of write(String) method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlatFileItemWriterTests()
Method Detail |
---|
protected void setUp() throws Exception
Exception
protected void tearDown() throws Exception
Exception
public void testWriteString() throws Exception
write(String)
method
Exception
public void testWriteWithConverter() throws Exception
write(String)
method
Exception
public void testWriteWithConverterAndInfiniteLoop() throws Exception
write(String)
method
Exception
public void testWriteWithConverterAndString() throws Exception
write(String)
method
Exception
public void testWriteRecord() throws Exception
write(String[], LineDescriptor)
method
Exception
public void testRollback() throws Exception
Exception
public void testCommit() throws Exception
Exception
public void testRestart() throws Exception
Exception
public void testOpenWithNonWritableFile() throws Exception
Exception
public void testAfterPropertiesSetChecksMandatory() throws Exception
Exception
public void testDefaultStreamContext() throws Exception
Exception
public void testWriteStringWithBogusEncoding() throws Exception
write(String)
method
Exception
public void testWriteStringWithEncodingAfterClose() throws Exception
write(String)
method
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |