org.springframework.batch.io.oxm
Class AbstractStaxEventReaderItemReaderTests

java.lang.Object
  extended by TestCase
      extended by org.springframework.batch.io.oxm.AbstractStaxEventReaderItemReaderTests
Direct Known Subclasses:
CastorUnmarshallingTests, XStreamUnmarshallingTests

public abstract class AbstractStaxEventReaderItemReaderTests
extends TestCase


Field Summary
protected  Resource resource
           
 
Constructor Summary
AbstractStaxEventReaderItemReaderTests()
           
 
Method Summary
protected  void checkResults(List results)
           
protected abstract  org.springframework.oxm.Unmarshaller getUnmarshaller()
           
 void setResource(Resource resource)
           
protected  void setUp()
           
protected  void tearDown()
           
 void testRead()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

protected Resource resource
Constructor Detail

AbstractStaxEventReaderItemReaderTests

public AbstractStaxEventReaderItemReaderTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testRead

public void testRead()

getUnmarshaller

protected abstract org.springframework.oxm.Unmarshaller getUnmarshaller()
                                                                 throws Exception
Returns:
Unmarshaller specific to the OXM library used
Throws:
Exception

checkResults

protected void checkResults(List results)
Parameters:
results - list of domain objects returned by input source

tearDown

protected void tearDown()
                 throws Exception
Throws:
Exception

setResource

public void setResource(Resource resource)


Copyright © 2008 SpringSource. All Rights Reserved.