RE: Some magic questions

"Stephen McConnell" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <000801c48e37$5fe2a190$1601a8c0@gloria>

> -----Original Message-----
> From: Peter Neubauer [mailto:[email protected]]
> Sent: 29 August 2004 22:45
> To: [email protected]
> Subject: Some magic questions
> 
> Hi,
> playing with magic, I got some questions regarding testing:
> 
> - in the x:component task, is it possible to nest x:configuration
> elements? I
> have seen it only for parameters.

Configuration elements are not supported yet - although I do have a
version locally which is reading <x:configuration>, arbitrary children,
attributes, and string values.  

> 
> - when I use merlin-unit, during the compile task the relevant .jar
file
> gets
> assembled into target/deliverables/jars/...jar, containing the newly
> compiled
> files and the meta files. How can I reference it in the test.block
file?

You can create a test block by setting the scope attribute to "TEST":

  <x:block name="widget" scope="TEST">
    <x:component name="gizmo" class="org.whatever.DefaultTestGizmo"/>
  </x:block>

Steve.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.