net.sf.jsefa.test.xml
Class EmptyValueTest

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

public class EmptyValueTest
extends junit.framework.TestCase

Tests the correct serialization/deserialization of empty DTOs mapped to complex elements, empty lists and empty String fields.

Author:
Norman Lahme-Huetig

Constructor Summary
EmptyValueTest()
           
 
Method Summary
 void testComplexElement()
          Tests the correct serialization/deserialization of a DTO mapped to a complex element with an empty field.
 void testElementList()
          Tests the correct serialization/deserialization of a DTO mapped to an empty element list.
 void testElementMap()
          Tests the correct serialization/deserialization of a DTO mapped to an empty element map.
 void testSimpleElement()
          Tests the correct serialization/deserialization of a DTO with an empty String field.
 void testTextContentElement()
          Tests the correct serialization/deserialization of a DTO mapped to a element with an empty text content.
 
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

EmptyValueTest

public EmptyValueTest()
Method Detail

testSimpleElement

public void testSimpleElement()
Tests the correct serialization/deserialization of a DTO with an empty String field.


testTextContentElement

public void testTextContentElement()
Tests the correct serialization/deserialization of a DTO mapped to a element with an empty text content.


testComplexElement

public void testComplexElement()
Tests the correct serialization/deserialization of a DTO mapped to a complex element with an empty field.


testElementList

public void testElementList()
Tests the correct serialization/deserialization of a DTO mapped to an empty element list.


testElementMap

public void testElementMap()
Tests the correct serialization/deserialization of a DTO mapped to an empty element map.



Copyright © 2014. All rights reserved.