org.springframework.batch.item.xml
Class StaxEventItemWriterTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.item.xml.StaxEventItemWriterTests

public class StaxEventItemWriterTests
extends TestCase

Tests for StaxEventItemWriter.


Constructor Summary
StaxEventItemWriterTests()
           
 
Method Summary
protected  void setUp()
           
 void testClear()
           
 void testFlush()
          Flush should pass buffered items to Serializer.
 void testOpenAndClose()
          Open method writes the root tag, close method adds corresponding end tag.
 void testRestart()
          Restart scenario - content is appended to the output file after restart.
 void testRollback()
          Rolled back records should not be written to output file.
 void testStreamContext()
          Count of 'records written so far' is returned as statistics.
 void testWriteAndFlush()
          Item is written to the output file only after flush.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaxEventItemWriterTests

public StaxEventItemWriterTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testFlush

public void testFlush()
               throws Exception
Flush should pass buffered items to Serializer.

Throws:
Exception

testClear

public void testClear()
               throws Exception
Throws:
Exception

testRollback

public void testRollback()
                  throws Exception
Rolled back records should not be written to output file.

Throws:
Exception

testWriteAndFlush

public void testWriteAndFlush()
                       throws Exception
Item is written to the output file only after flush.

Throws:
Exception

testRestart

public void testRestart()
                 throws Exception
Restart scenario - content is appended to the output file after restart.

Throws:
Exception

testStreamContext

public void testStreamContext()
                       throws Exception
Count of 'records written so far' is returned as statistics.

Throws:
Exception

testOpenAndClose

public void testOpenAndClose()
                      throws Exception
Open method writes the root tag, close method adds corresponding end tag.

Throws:
Exception


Copyright © 2008 SpringSource. All Rights Reserved.