uk.ac.ucl.sse.omii.bpel.abr.generation.util.tests
Class RelativeImportResolverTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by uk.ac.ucl.sse.omii.bpel.abr.generation.util.tests.RelativeImportResolverTest
All Implemented Interfaces:
junit.framework.Test

public class RelativeImportResolverTest
extends junit.framework.TestCase

Testing the resolution of local imports in the BPEL and following a tree of imports in WSDL and XSD resources. Any global resources (i.e. accessible via http://...) and their imports further down the tree will be ignored. For example, WSDL(R)--WSDL(G)--XSD(R) means that the first WSDL resource will be added to the catalog, but as its WSDL import is global, it and all items further down the tree will not be added.

Author:
Bruno Wassermann, written 22 Feb 2007

Constructor Summary
RelativeImportResolverTest(java.lang.String name)
           
 
Method Summary
 void testGetWsdlDefinition_fromBpwsImport()
          Testing that can get WSDL definitions given a bwps:import.
 void testGetWsdlDefinition_fromWsdlImport()
          Testing that can get WSDL definition given a wsdl:import.
 void testGetXsdSchema()
          Testing that can get XSD schema given an xsd:import.
 void testResolveImorts_localOnly()
          Testing that all local resources are returned.
 void testResolveImports_localGlobal()
          Testing that only local resources are returned and global ones are ommitted.
 void testResolveImports_noDuplicates()
          Testing that no duplicates of resources are returned.
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelativeImportResolverTest

public RelativeImportResolverTest(java.lang.String name)
Method Detail

testResolveImorts_localOnly

public void testResolveImorts_localOnly()
                                 throws java.io.IOException,
                                        org.eclipse.core.runtime.CoreException
Testing that all local resources are returned.

Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

testResolveImports_localGlobal

public void testResolveImports_localGlobal()
Testing that only local resources are returned and global ones are ommitted.


testResolveImports_noDuplicates

public void testResolveImports_noDuplicates()
Testing that no duplicates of resources are returned.


testGetWsdlDefinition_fromBpwsImport

public void testGetWsdlDefinition_fromBpwsImport()
                                          throws java.io.IOException,
                                                 org.eclipse.core.runtime.CoreException
Testing that can get WSDL definitions given a bwps:import.

Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

testGetWsdlDefinition_fromWsdlImport

public void testGetWsdlDefinition_fromWsdlImport()
                                          throws java.io.IOException,
                                                 org.eclipse.core.runtime.CoreException
Testing that can get WSDL definition given a wsdl:import.

Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException

testGetXsdSchema

public void testGetXsdSchema()
                      throws java.io.IOException,
                             org.eclipse.core.runtime.CoreException
Testing that can get XSD schema given an xsd:import.

Throws:
java.io.IOException
org.eclipse.core.runtime.CoreException