tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Nash <n...@hursley.ibm.com>
Subject Re: SDO Databinding test failure
Date Sun, 15 Apr 2007 22:56:50 GMT
In addition to this code change, an additional import is also needed:

import org.apache.tuscany.contribution.resolver.DefaultArtifactResolver;

(the other) Simon

Simon Laws wrote:

> I just made the following change in ImportSDOProcessorTestCase to make the
> SDO tests work. See commented out/new line below. The loader in this case
> dereferences the rolver so you can't pass in null without getting an NPE.
> I'm not sure what the intention is here so I haven't checked this in. We
> could either create the DefaultArtifactResolver here, test for null in the
> loader and do nothing if null is passed in or preferably both.
> 
>  public void testFactory() throws Exception {
>        String xml = "<import.sdo xmlns='
> http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0' " + "factory='"
>                     + MockFactory.class.getName()
>                     + "'/>";
>        XMLStreamReader reader = getReader(xml);
>        assertFalse(inited);
>        ImportSDO importSDO = loader.read(reader);
>        assertNotNull(importSDO);
>        //loader.resolve(importSDO, null);
>        loader.resolve(importSDO, new DefaultArtifactResolver());
>        assertTrue(inited);
>    }
> 
> Simon
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Mime
View raw message