You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/01/28 04:57:04 UTC
cvs commit: jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/stubs/component-test MyComponentTest.java MyComponentTest.xml ComponentTest.java ComponentTest.xml
jvanzyl 2003/01/27 19:57:04
Added: src/plugins-build/plexus/src/plugin-resources/stubs/component
DefaultMyComponent.java MyComponent.java
src/plugins-build/plexus/src/plugin-resources/stubs/component-test
MyComponentTest.java MyComponentTest.xml
Removed: src/plugins-build/plexus/src/plugin-resources/stubs/component-test
ComponentTest.java ComponentTest.xml
Log:
o Adding stub components with test.
Revision Changes Path
1.1 jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/stubs/component/DefaultMyComponent.java
Index: DefaultMyComponent.java
===================================================================
package @PACKAGE@;
import org.apache.avalon.framework.activity.Disposable;
import org.apache.avalon.framework.activity.Initializable;
import org.apache.avalon.framework.activity.Startable;
import org.apache.avalon.framework.configuration.Configurable;
import org.apache.avalon.framework.configuration.Configuration;
import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.logger.AbstractLogEnabled;
/**
*/
public class DefaultMyComponent
extends AbstractLogEnabled
implements Configurable, Initializable, Startable, Disposable
{
/**
* Configure the Broker
*/
public void configure(Configuration configuration)
throws ConfigurationException
{
}
public void initialize()
throws Exception
{
}
public void start()
throws Exception
{
}
public void stop()
throws Exception
{
}
public void dispose()
{
}
}
1.1 jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/stubs/component/MyComponent.java
Index: MyComponent.java
===================================================================
package @PACKAGE@;
public interface MyComponent
{
/** Role of component. */
String ROLE = MyComponent.class.getName();
}
1.1 jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/stubs/component-test/MyComponentTest.java
Index: MyComponentTest.java
===================================================================
package @PACKAGE@;
import org.apache.plexus.PlexusTestCase;
import @PACKAGE@.MyComponent;
public class MyComponentTest
extends PlexusTestCase
{
public MyComponentTest( String name )
{
super( name );
}
public void testBasic()
throws Exception
{
MyComponent component = ( MyComponent ) getComponent ( MyComponent.ROLE, "component" );
}
}
1.1 jakarta-turbine-maven/src/plugins-build/plexus/src/plugin-resources/stubs/component-test/MyComponentTest.xml
Index: MyComponentTest.xml
===================================================================
<configuration>
<components>
<component>
<id>component</id>
<role>@PACKAGE@.MyComponent</role>
<implementation>@PACKAGE@.DefaultMyComponent</implementation>
<configuration>
</configuration>
</component>
</components>
</configuration>