org.springframework.batch.item.xml.oxm
Class UnmarshallingFragmentDeserializerTests

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

public class UnmarshallingFragmentDeserializerTests
extends TestCase

Tests for UnmarshallingEventReaderDeserializer

Author:
Robert Kasanicky

Constructor Summary
UnmarshallingFragmentDeserializerTests()
           
 
Method Summary
protected  void setUp()
           
 void testExceptionOnNullUnmarshaller()
          It makes no sense to create UnmarshallingFragmentDeserializer with null Unmarshaller, therefore it should cause exception.
 void testFailedDeserialization()
          Appropriate exception rethrown in case of failure.
 void testSuccessfulDeserialization()
          Regular scenario when deserializer returns the object provided by Unmarshaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmarshallingFragmentDeserializerTests

public UnmarshallingFragmentDeserializerTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Throws:
Exception

testSuccessfulDeserialization

public void testSuccessfulDeserialization()
                                   throws Exception
Regular scenario when deserializer returns the object provided by Unmarshaller

Throws:
Exception

testFailedDeserialization

public void testFailedDeserialization()
                               throws Exception
Appropriate exception rethrown in case of failure.

Throws:
Exception

testExceptionOnNullUnmarshaller

public void testExceptionOnNullUnmarshaller()
It makes no sense to create UnmarshallingFragmentDeserializer with null Unmarshaller, therefore it should cause exception.



Copyright © 2008 SpringSource. All Rights Reserved.