net.sf.jsefa.test.xml
Class TextModeTest

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

public class TextModeTest
extends junit.framework.TestCase

Tests the correct serialization/deserialization of Elements annotated with different textModes.

Author:
Matthias Derer

Constructor Summary
TextModeTest()
           
 
Method Summary
 void testCDATASequence()
          Tests the correct serialization of a text node including the string ']]>' .
 void testElementList()
          Tests the correct serialization/deserialization of a DTO mapped to an element list.
 void testEmptyElement()
          Tests the correct serialization/deserialization of a DTO with an empty String field.
 void testEmptyElementList()
          Tests the correct serialization/deserialization of a DTO mapped to an empty element list.
 void testEmptyTextContentElement()
          Tests the correct serialization/deserialization of a DTO mapped to a element with an empty text content.
 void testStringElement()
          Tests the correct serialization/deserialization of a DTO with a String field.
 void testTextContentElement()
          Tests the correct serialization/deserialization of a DTO mapped to a element with 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

TextModeTest

public TextModeTest()
Method Detail

testEmptyElement

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


testStringElement

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


testEmptyTextContentElement

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


testTextContentElement

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


testEmptyElementList

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


testElementList

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


testCDATASequence

public void testCDATASequence()
Tests the correct serialization of a text node including the string ']]>' .



Copyright © 2014. All rights reserved.