CVS: plexus-components/velocity/src/test/org/apache/plexus/velocity RuntimeVelocityComponentTest.java,1.1.1.1,1.2
[email protected] Sun, 27 Apr 2003 20:55:18 -0500
| Newsgroups | gmane.comp.java.plexus.devel |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/plexus/plexus-components/velocity/src/test/org/apache/plexus/velocity
In directory eng.werken.com:/tmp/cvs-serv10973/src/test/org/apache/plexus/velocity
Modified Files:
RuntimeVelocityComponentTest.java
Log Message:
o Conversion to plexus 0.4.
Index: RuntimeVelocityComponentTest.java
===================================================================
RCS file: /cvsroot/plexus/plexus-components/velocity/src/test/org/apache/plexus/velocity/RuntimeVelocityComponentTest.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- RuntimeVelocityComponentTest.java 15 Feb 2003 03:56:06 -0000 1.1.1.1
+++ RuntimeVelocityComponentTest.java 28 Apr 2003 01:55:16 -0000 1.2
@@ -6,6 +6,7 @@
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.plexus.PlexusTestCase;
+import org.apache.plexus.configuration.DefaultConfigurationBuilder;
import org.apache.plexus.velocity.VelocityComponent;
import org.apache.velocity.VelocityContext;
@@ -20,7 +21,8 @@
public void testBasic() throws Exception
{
- Configuration configuration = getConfiguration( "custom" );
+ DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
+ Configuration configuration = builder.build( getConfiguration( "custom" ) );
VelocityComponent velocity = (VelocityComponent) getComponent( VelocityComponent.ROLE, configuration );