Author: danielf Date: Fri Apr 8 00:54:22 2005 New Revision: 160530 URL: http://svn.apache.org/viewcvs?view=rev&rev=160530 Log: Needed for better control over configurations in o.a.c.SitemapTestCase, forgot to check in.
Modified: cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java Modified: cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java?view=diff&r1=160529&r2=160530 ============================================================================== --- cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java (original) +++ cocoon/trunk/src/core/test/org/apache/cocoon/core/container/ContainerTestCase.java Fri Apr 8 00:54:22 2005 @@ -196,10 +196,29 @@ conf = new DefaultConfiguration("", "-"); } - this.context = this.setupContext( conf.getChild( "context" ) ); + this.prepare( conf.getChild( "context" ), + conf.getChild( "roles" ), + conf.getChild( "components" ) ); + } - this.setupManagers( conf.getChild( "components" ), - conf.getChild( "roles" )); + /** + * Initializes the ComponentLocator + * + * @param context The configuration object for the context + * @param roles The configuration object for the roles + * @param components The configuration object for the components + * + * More detailed control over configuration can be achieved by + * overriding <code>prepare()</code>, construct the configuration + * objects and call this method. + */ + protected final void prepare( final Configuration context, + final Configuration roles, + final Configuration components ) + throws Exception { + this.context = this.setupContext( context ); + + this.setupManagers( components, roles ); } /* (non-Javadoc)