|
||||||||||
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.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 |
testOpenTwice()
|
void |
testOpenWithNonWritableFile()
|
void |
testRestart()
|
void |
testRollback()
|
void |
testWriteHeader()
|
void |
testWriteHeaderAfterRestartOnFirstChunk()
|
void |
testWriteHeaderAfterRestartOnSecondChunk()
|
void |
testWriteRecord()
Regular usage of write(String[], LineDescriptor) method |
void |
testWriteRecordWithrecordSeparator()
|
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 |
void |
testWriteWithMultipleOpen()
|
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 |
Constructor Detail |
---|
public FlatFileItemWriterTests()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testWriteWithMultipleOpen() throws Exception
Exception
public void testOpenTwice()
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 testWriteRecordWithrecordSeparator() throws Exception
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
public void testWriteHeader() throws Exception
Exception
public void testWriteHeaderAfterRestartOnFirstChunk() throws Exception
Exception
public void testWriteHeaderAfterRestartOnSecondChunk() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |