tests
Class ImportTest

java.lang.Object
  extended by org.junit.Assert
      extended by tests.ImportTest

public class ImportTest
extends org.junit.Assert


Constructor Summary
ImportTest()
           
 
Method Summary
 void testImportWithJARURL()
          Tests that imports are properly resolved when loading a schema from a JAR (as will generally be the case when loading a schema from the classpath).
 void testImportWithKnownNamespace()
          Tests that imports without schemaLocation are resolved if the corresponding schemas have been registered using XmlSchemaCollection.getKnownNamespaceMap().
 void testSchemaImport()
           
 void testSchemaImport2()
          variation of above don't set the base uri.
 void testSchemaImport3()
          see whether we can reach the types of the imported schemas.
 void testSchemaImport4()
          see whether we can parse the imported schemas using relative directories and paths.
 
Methods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportTest

public ImportTest()
Method Detail

testSchemaImport

public void testSchemaImport()
                      throws Exception
Throws:
Exception

testSchemaImport2

public void testSchemaImport2()
                       throws Exception
variation of above don't set the base uri.

Throws:
Exception

testSchemaImport3

public void testSchemaImport3()
                       throws Exception
see whether we can reach the types of the imported schemas.

Throws:
Exception

testSchemaImport4

public void testSchemaImport4()
                       throws Exception
see whether we can parse the imported schemas using relative directories and paths.

Throws:
Exception

testImportWithKnownNamespace

public void testImportWithKnownNamespace()
Tests that imports without schemaLocation are resolved if the corresponding schemas have been registered using XmlSchemaCollection.getKnownNamespaceMap().


testImportWithJARURL

public void testImportWithJARURL()
                          throws Exception
Tests that imports are properly resolved when loading a schema from a JAR (as will generally be the case when loading a schema from the classpath).

Throws:
Exception


Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.