net.sf.jsefa.test.xml
Class NamespacesTest

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

public class NamespacesTest
extends junit.framework.TestCase

Tests to correct serialization/deserialization with different namespace declaration scenarios.

Author:
Marko Kovacevic, Norman Lahme-Huetig

Constructor Summary
NamespacesTest()
           
 
Method Summary
 void testDefaultNamespace()
          Tests the case when a default namespace is given.
 void testEraseDefaultNamespace()
          Tests the case when a default namespace is erased (the parent has a default namespace but the child not).
 void testExplicitNamespace()
          Tests the case when an explicit namespace is given.
 void testNoNamespace()
          Tests the case when no namespace is given.
 void testOverwrittenDefaultNamespace()
          Tests the case when 2 default namespaces are given with the second overwriting the first.
 void testOverwrittenExplicitNamespace()
          Tests the case when 2 explicit namespaces are given with the second overwriting the first.
 
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

NamespacesTest

public NamespacesTest()
Method Detail

testNoNamespace

public void testNoNamespace()
Tests the case when no namespace is given.


testDefaultNamespace

public void testDefaultNamespace()
Tests the case when a default namespace is given.


testExplicitNamespace

public void testExplicitNamespace()
Tests the case when an explicit namespace is given.


testOverwrittenDefaultNamespace

public void testOverwrittenDefaultNamespace()
Tests the case when 2 default namespaces are given with the second overwriting the first.


testOverwrittenExplicitNamespace

public void testOverwrittenExplicitNamespace()
Tests the case when 2 explicit namespaces are given with the second overwriting the first.


testEraseDefaultNamespace

public void testEraseDefaultNamespace()
Tests the case when a default namespace is erased (the parent has a default namespace but the child not).



Copyright © 2014. All rights reserved.