Am Mo, den 01.03.2004 schrieb Ann um 15:04:
> Dear Stephan 
> 
> The SitemapComponentTestCase class. which you mentioned is a part of cocoon 2.1.4. 
> We are using 2.1.3.  
> Is it possible for us to use this class or do we have to migrate to 2.1.4!!
> Secondly the .xtest file which you have mentioned ,does this act as a configuration 
> file when we test with Xtest Framework ??
> 
> Do we have to manually read it if we are using Junit?? Am not clear on this. I have 
> read it manually 
> DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
> Configuration sysConfig = 
> builder.buildFromFile("./abc/src/control/test/VisualActionTest.xtest");
> 
> 
> Would you recommend we use Xtest for testing ???
> My understanding is that with xtest we can easily configure the components .
> I am not clear on these points.Could you please clarify ???

I think you are something different here. With the xtest file the
component manager and their components will be configured.
In the inherited test class you have access to the already configured
components. For example

Map act(String type, String source, Parameters parameters) 

retrieve the action component with the name "type" from the CM, executes
it.

The xtest file will automatically consumed, see
http://cvs.apache.org/viewcvs.cgi/avalon-excalibur/component/src/java/org/apache/avalon/excalibur/testcase/ExcaliburTestCase.java?rev=1.6&view=auto


Stephan.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to