org.jboss.test.util.test.xml.resolver
Class JBossEntityResolverUnitTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jboss.test.util.test.xml.resolver.JBossEntityResolverUnitTestCase
All Implemented Interfaces:
junit.framework.Test

public class JBossEntityResolverUnitTestCase
extends junit.framework.TestCase

A JBossEntityResolverUnitTestCase.

Version:
$Revision: 1.1 $
Author:
Alexey Loubyansky

Constructor Summary
JBossEntityResolverUnitTestCase(String arg0)
           
 
Method Summary
protected  String getRootName()
           
 void testResolveRedefine()
          The spcial thing about the resolution of xsd:redefine is that the parser passes the namespace of the redefining schema as publicId and the schema location of the redefined schema as systemId.
 void testSystemPropertyInSystemID()
           
 
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

JBossEntityResolverUnitTestCase

public JBossEntityResolverUnitTestCase(String arg0)
Method Detail

testResolveRedefine

public void testResolveRedefine()
                         throws Exception
The spcial thing about the resolution of xsd:redefine is that the parser passes the namespace of the redefining schema as publicId and the schema location of the redefined schema as systemId. Now, if the redefining schema's namespace has already been mapped to a schema location of the redefining schema then schema location argument is ignored and the redefining schema is returned instead of the redefined schema.

Throws:
Exception

testSystemPropertyInSystemID

public void testSystemPropertyInSystemID()
                                  throws Exception
Throws:
Exception

getRootName

protected String getRootName()


Copyright © 2009 JBoss Inc.. All Rights Reserved.