tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Feng" <enjoyj...@gmail.com>
Subject Re: SDO Databinding test failure
Date Mon, 16 Apr 2007 05:23:00 GMT
Hi,

This is a good fix. I just committed it.

Thanks,
Raymond

----- Original Message ----- 
From: "Simon Laws" <simonslaws@googlemail.com>
To: "tuscany-dev" <tuscany-dev@ws.apache.org>
Sent: Sunday, April 15, 2007 2:40 PM
Subject: SDO Databinding test failure


>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