net.sf.jsefa.test.xml
Class DeserializationFaultToleranceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sf.jsefa.test.xml.DeserializationFaultToleranceTest
All Implemented Interfaces:
junit.framework.Test

public class DeserializationFaultToleranceTest
extends junit.framework.TestCase

Tests the fault tolerance when deserializing a list of DTOs where some of them cause an Exception as they are not valid (but well formed). I. e. after an Exception caused by invalid elements one should be able to read in the next DTO.

Note: It is not possible to resume after encountering a not wellformed part of the document.

Author:
Norman Lahme-Huetig

Constructor Summary
DeserializationFaultToleranceTest()
           
 
Method Summary
 void testWithIllformedElements()
          Tests it with different positions of illformed elements.
 void testWithInvalidElements()
          Tests it with different positions of invalid elements.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeserializationFaultToleranceTest

public DeserializationFaultToleranceTest()
Method Detail

testWithInvalidElements

public void testWithInvalidElements()
Tests it with different positions of invalid elements.


testWithIllformedElements

public void testWithIllformedElements()
Tests it with different positions of illformed elements.



Copyright © 2014. All rights reserved.