mcconnell 2003/01/29 09:31:10 Modified: sourceresolve/src/test/org/apache/excalibur/source SourceResolverImplTestCase.java Log: Extended testcase to demonstrate conflict with ComponentSelector narrow. Revision Changes Path 1.2 +7 -1 jakarta-avalon-excalibur/sourceresolve/src/test/org/apache/excalibur/source/SourceResolverImplTestCase.java Index: SourceResolverImplTestCase.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/sourceresolve/src/test/org/apache/excalibur/source/SourceResolverImplTestCase.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SourceResolverImplTestCase.java 29 Jan 2003 16:00:09 -0000 1.1 +++ SourceResolverImplTestCase.java 29 Jan 2003 17:31:09 -0000 1.2 @@ -45,7 +45,7 @@ // final DefaultContext context = new DefaultContext(); - context.put( "context-root", new File( System.getProperty( "user.work" ) ) ); + context.put( "context-root", new File( System.getProperty( "user.dir" ) ) ); resolver.contextualize( context ); // @@ -67,12 +67,18 @@ final DefaultServiceManager manager = new DefaultServiceManager(); manager.put( SourceFactory.ROLE + "Selector", selector ); + logger.debug( "Servicing the resolver based on the fortress pattern - this will fail because the service implementation in SourceResolverImpl is attempting to narrow the selector to a ComponentSelector instead of a ServiceSelector - something needs to be changed here either in (a) the implementation or (b) this test case and in Fortrress." ); + + resolver.service( manager ); + // // parameterize the resolver - Why? // NOTE: Missing javadoc // resolver.parameterize( new Parameters() ); + + logger.debug( "resolver created - but is this correct ?" ); // // setup a protocol handler - TO BE DONE
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]