that didn't seem to fix the problem.
I did some experimentation and the problem seems to
lie in the fact that the Configuration object
(DefaultConfiguration) that is passed onto the
configure method of my service as the result of using
PUnit, does not handle xml nodes with childeren
elements.
So that using below as build argument of
DefaultConfigurationBuilder:
<config><myserver><ini.file>....</ini.file></myserver></config>
throws an error
[junit] [ERROR] Component named "myserver" failed
to pass through the Parameterizing stage. (Reason:
org.apache.avalon.framework.configuration.ConfigurationException:
No value is associated with the configuration element
"config" at null:1:9).
but using below as parameter to
DeafaultConfigurationBuilder.build
<config>someconfig</config> works.
any ideas?
> On Sat, 24 May 2003 07:27 am, sadaf zargeen wrote:
> > Configuration configuration =
> > m_defaultConfigurationBuilder.build(
> >
> > new InputSource(new
> >
StringReader("<config><myserver><ini.file>/tmp/my.ini</ini.file></myserver>
> ></config>"))); addBlock("my-server","block", block,
> > configuration);
> >
> >
> > and running my test, I get the following
exception:
> >
> >
> > [junit] Testcase: testBasicBlock took 0.308
sec
> > [junit] Caused an ERROR
> > [junit] Component named "my-server" failed to
pass
>
> The problem is that the configuration name is
"myserver" and you have used the
> name "my-server" for the component.
>
> --
> Cheers,
>
> Peter Donald
> *------------------------------------*
> | God has no religion - Gandhi |
> *------------------------------------*
>
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]