org.springframework.batch.item.database
Class BatchSqlUpdateItemWriterTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.batch.item.database.BatchSqlUpdateItemWriterTests
All Implemented Interfaces:
junit.framework.Test

public class BatchSqlUpdateItemWriterTests
extends junit.framework.TestCase

Author:
Dave Syer

Field Summary
protected  List list
           
 
Constructor Summary
BatchSqlUpdateItemWriterTests()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testAfterPropertiesSet()
          Test method for BatchSqlUpdateItemWriter.afterPropertiesSet().
 void testClear()
          Test method for AbstractTransactionalResourceItemWriter.clear().
 void testEmptyFlush()
          Flushing without writing items previously should be handled gracefully.
 void testFlush()
          Test method for AbstractTransactionalResourceItemWriter.flush().
 void testWrite()
          Test method for AbstractTransactionalResourceItemWriter.write(java.lang.Object).
 void testWriteAndFlush()
          Test method for AbstractTransactionalResourceItemWriter.flush().
 void testWriteAndFlushWithEmptyUpdate()
          Test method for AbstractTransactionalResourceItemWriter.flush().
 void testWriteAndFlushWithFailure()
           
 
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
 

Field Detail

list

protected List list
Constructor Detail

BatchSqlUpdateItemWriterTests

public BatchSqlUpdateItemWriterTests()
Method Detail

setUp

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

tearDown

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

testAfterPropertiesSet

public void testAfterPropertiesSet()
                            throws Exception
Test method for BatchSqlUpdateItemWriter.afterPropertiesSet().

Throws:
Exception

testWrite

public void testWrite()
               throws Exception
Test method for AbstractTransactionalResourceItemWriter.write(java.lang.Object).

Throws:
Exception

testClear

public void testClear()
Test method for AbstractTransactionalResourceItemWriter.clear().


testFlush

public void testFlush()
               throws SQLException
Test method for AbstractTransactionalResourceItemWriter.flush().

Throws:
SQLException

testWriteAndFlush

public void testWriteAndFlush()
                       throws Exception
Test method for AbstractTransactionalResourceItemWriter.flush().

Throws:
Exception

testWriteAndFlushWithEmptyUpdate

public void testWriteAndFlushWithEmptyUpdate()
                                      throws Exception
Test method for AbstractTransactionalResourceItemWriter.flush().

Throws:
Exception

testWriteAndFlushWithFailure

public void testWriteAndFlushWithFailure()
                                  throws Exception
Throws:
Exception

testEmptyFlush

public void testEmptyFlush()
Flushing without writing items previously should be handled gracefully.



Copyright © 2008 SpringSource. All Rights Reserved.