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

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.batch.item.xml.oxm.UnmarshallingFragmentDeserializerTests
All Implemented Interfaces:
junit.framework.Test

public class UnmarshallingFragmentDeserializerTests
extends junit.framework.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 junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

UnmarshallingFragmentDeserializerTests

public UnmarshallingFragmentDeserializerTests()
Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class junit.framework.TestCase
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.