Author: akarasulu
Date: Wed Mar 17 00:12:51 2004
New Revision: 9559
Added:
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/ (props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/block.xml (contents,
props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/config.xml (contents,
props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/debug.xml (contents,
props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/maven.xml (contents, props
changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/project.properties (contents,
props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/project.xml (contents,
props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/docbook/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/images/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/AvalonLoggingMonitor.java
(contents, props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/MerlinEncoderManager.java
(contents, props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/MerlinEncoderManager.xconfig
(contents, props changed)
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/eve/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/eve/encoder/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/eve/encoder/impl/
incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/eve/encoder/impl/MerlinEncoderManagerTest.java
(contents, props changed)
Log:
Adding the shell for the encoder.
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/block.xml
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/block.xml Wed Mar
17 00:12:51 2004
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<container name="server">
+
+ <classloader>
+ <classpath>
+ <repository>
+
+ <!-- Non-Apache Dependencies -->
+
+ <resource id="junit:junit" version="3.8.1"/>
+
+ <!-- Avalon Dependencies -->
+
+ <resource id="avalon-framework:avalon-framework-api" version="4.1.5"/>
+ <resource id="avalon-framework:avalon-framework-impl" version="4.1.5"/>
+ <resource id="cornerstone-threads:cornerstone-threads-api" version="SNAPSHOT"/>
+ <resource id="cornerstone-threads:cornerstone-threads-impl" version="SNAPSHOT"/>
+ <resource id="excalibur-thread:excalibur-thread" version="1.1.1"/>
+ <resource id="excalibur-instrument:excalibur-instrument" version="1.0"/>
+ <resource id="excalibur-pool:excalibur-pool" version="1.2"/>
+ <resource id="excalibur-event:excalibur-event" version="1.0.3"/>
+
+ <!-- Jakarta & Commons Dependencies -->
+
+ <resource id="regexp:regexp" version="1.2"/>
+ <resource id="commons-collections:commons-collections" version="3.0"/>
+ <resource id="commons-primitives:commons-primitives" version="1.1-dev"/>
+ <resource id="commons-lang:commons-lang" version="2.0"/>
+
+ <!-- Directory Dependencies -->
+
+ <resource id="incubator-directory:ldap-common" version="SNAPSHOT"/>
+ <resource id="incubator-directory:eve-frontend-common-api" version="SNAPSHOT"/>
+
+ <!-- Eve Decoder -->
+ <resource id="incubator-directory:eve-frontend-event-spi" version="SNAPSHOT"/>
+ <resource id="incubator-directory:eve-frontend-event-pojo-impl" version="SNAPSHOT"/>
+ <resource id="incubator-directory:eve-frontend-event-merlin-impl" version="SNAPSHOT"/>
+
+ <!-- Eve Decoder -->
+ <resource id="incubator-directory:eve-frontend-encoder-spi" version="SNAPSHOT"/>
+ <resource id="incubator-directory:eve-frontend-encoder-pojo-impl" version="SNAPSHOT"/>
+
+ </repository>
+ </classpath>
+ </classloader>
+
+ <component name="thread-manager"
+ class="org.apache.avalon.cornerstone.blocks.threads.DefaultThreadManager">
+ <configuration>
+ <thread-group>
+ <name>encoder-manager</name>
+ <priority>5</priority>
+ <is-daemon>false</is-daemon>
+ <max-threads>5</max-threads>
+ <min-threads>2</min-threads>
+ <min-spare-threads>1</min-spare-threads>
+ </thread-group>
+ </configuration>
+ </component>
+
+ <component
+ name="event-router"
+ class="org.apache.eve.event.MerlinEventRouter"/>
+ <component
+ name="encoder-manager"
+ class="org.apache.eve.encoder.impl.MerlinEncoderManager"/>
+</container>
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/config.xml
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/config.xml Wed Mar
17 00:12:51 2004
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<targets>
+ <target path="/server/encoder-manager">
+ <categories priority="DEBUG"/>
+ </target>
+</targets>
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/debug.xml
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/conf/debug.xml Wed Mar
17 00:12:51 2004
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<kernel>
+
+ <!-- logging system parameters -->
+ <logging target="default" priority="DEBUG" name="kernel">
+ </logging>
+
+</kernel>
+
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/maven.xml
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/maven.xml Wed Mar 17 00:12:51
2004
@@ -0,0 +1,42 @@
+<project
+ default="jar:install"
+ xmlns:j="jelly:core"
+ xmlns:u="jelly:util"
+ xmlns:ant="jelly:ant"
+ xmlns:maven="jelly:maven"
+ xmlns:m="maven"
+ xmlns:deploy="deploy">
+
+ <preGoal name="site">
+ <attainGoal name="docbook:transform"/>
+ </preGoal>
+
+ <postGoal name="site">
+ <attainGoal name="server:copy-images"/>
+ </postGoal>
+
+ <goal name="server:copy-images">
+ <copy toDir="target/docs/images">
+ <fileSet dir="${basedir}/src/images">
+ <include name="*.gif"/>
+ </fileSet>
+ </copy>
+ </goal>
+
+ <goal name="cleanall">
+ <attainGoal name="clean"/>
+ <delete dir="home"/>
+ </goal>
+
+ <postGoal name="java:compile">
+ <attainGoal name="avalon:meta"/>
+ </postGoal>
+
+ <postGoal name="aspectj:compile">
+ <attainGoal name="avalon:meta"/>
+ </postGoal>
+
+ <goal name="components">
+ <j:import inherit="true" uri="components.xml"/>
+ </goal>
+</project>
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/project.properties
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/project.properties Wed
Mar 17 00:12:51 2004
@@ -0,0 +1,5 @@
+maven.xdoc.date=left
+maven.xdoc.version=${pom.currentVersion}
+merlin.debug=true
+merlin.info=true
+merlin.override=conf/config.xml
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/project.xml
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/project.xml Wed Mar 17
00:12:51 2004
@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project>
+ <extend>${basedir}/../../../project.xml</extend>
+ <groupId>incubator-directory</groupId>
+ <id>eve-frontend-encoder-merlin-impl</id>
+
+ <name>Eve's Frontend EncoderManager Implementation For Merlin</name>
+ <package>org.apache.eve.encoder.impl</package>
+ <currentVersion>SNAPSHOT</currentVersion>
+ <inceptionYear>2003</inceptionYear>
+
+ <shortDescription>
+ </shortDescription>
+
+ <description>
+ </description>
+
+ <dependencies>
+
+ <!-- Non-Apache Dependencies -->
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <url>http://junit.org</url>
+ </dependency>
+
+ <!-- Jakarta & Commons Dependencies -->
+
+ <dependency>
+ <groupId>regexp</groupId>
+ <artifactId>regexp</artifactId>
+ <version>1.2</version>
+ <url>http://jakarta.apache.org/regexp</url>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.0</version>
+ <url>http://jakarta.apache.org/commons/lang</url>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-primitives</groupId>
+ <artifactId>commons-primitives</artifactId>
+ <version>1.1-dev</version>
+ <url>http://jakarta.apache.org/commons/primitives</url>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-collections</groupId>
+ <artifactId>commons-collections</artifactId>
+ <version>3.0</version>
+ <url>http://jakarta.apache.org/commons/collections</url>
+ </dependency>
+
+ <!-- Avalon Dependencies -->
+
+ <dependency>
+ <groupId>merlin</groupId>
+ <artifactId>merlin-unit</artifactId>
+ <version>3.2.10</version>
+ </dependency>
+
+ <!-- for some reason this is needed for merlin-unit tests -->
+ <!-- but it is not needed when when using command line merlin -->
+ <!-- within the block.xml's classloader directive -->
+
+ <dependency>
+ <groupId>logkit</groupId>
+ <artifactId>logkit</artifactId>
+ <version>1.2.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>avalon-framework</groupId>
+ <artifactId>avalon-framework-api</artifactId>
+ <version>4.1.5</version>
+ <url>http://avalon.apache.org/framework</url>
+ </dependency>
+
+ <dependency>
+ <groupId>avalon-framework</groupId>
+ <artifactId>avalon-framework-impl</artifactId>
+ <version>4.1.5</version>
+ <url>http://avalon.apache.org/framework</url>
+ </dependency>
+
+ <dependency>
+ <groupId>excalibur-instrument</groupId>
+ <artifactId>excalibur-instrument</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>excalibur-thread</groupId>
+ <artifactId>excalibur-thread</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>excalibur-event</groupId>
+ <artifactId>excalibur-event</artifactId>
+ <version>1.0.3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>excalibur-pool</groupId>
+ <artifactId>excalibur-pool</artifactId>
+ <version>1.2</version>
+ </dependency>
+
+ <dependency>
+ <groupId>cornerstone-threads</groupId>
+ <artifactId>cornerstone-threads-api</artifactId>
+ <version>SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>cornerstone-threads</groupId>
+ <artifactId>cornerstone-threads-impl</artifactId>
+ <version>SNAPSHOT</version>
+ </dependency>
+
+ <!-- Directory Dependencies -->
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>ldap-common</artifactId>
+ <version>SNAPSHOT</version>
+ <url>http://incubator.apache.org/directory/ldap/common</url>
+ </dependency>
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>eve-frontend-common-api</artifactId>
+ <version>SNAPSHOT</version>
+ <url>
+ http://incubator.apache.org/directory/subprojects/eve/common/api
+ </url>
+ </dependency>
+
+ <!-- Eve Event -->
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>eve-frontend-event-spi</artifactId>
+ <version>SNAPSHOT</version>
+ <url>
+ http://incubator.apache.org/directory/subprojects/eve/event/spi
+ </url>
+ </dependency>
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>eve-frontend-event-pojo-impl</artifactId>
+ <version>SNAPSHOT</version>
+ <url>
+ http://incubator.apache.org/directory/subprojects/eve/event/pojo-impl
+ </url>
+ </dependency>
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>eve-frontend-event-merlin-impl</artifactId>
+ <version>SNAPSHOT</version>
+ <url>
+ http://incubator.apache.org/directory/subprojects/eve/event/merlin-impl
+ </url>
+ </dependency>
+
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>eve-frontend-encoder-spi</artifactId>
+ <version>SNAPSHOT</version>
+ <url>
+ http://incubator.apache.org/directory/subprojects/eve/encoder/spi
+ </url>
+ </dependency>
+
+ <dependency>
+ <groupId>incubator-directory</groupId>
+ <artifactId>eve-frontend-encoder-pojo-impl</artifactId>
+ <version>SNAPSHOT</version>
+ <url>
+ http://incubator.apache.org/directory/subprojects/eve/encoder/pojo-impl
+ </url>
+ </dependency>
+
+ </dependencies>
+</project>
+
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/AvalonLoggingMonitor.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/AvalonLoggingMonitor.java
Wed Mar 17 00:12:51 2004
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.eve.encoder.impl ;
+
+
+import org.apache.avalon.framework.logger.AbstractLogEnabled ;
+
+
+/**
+ * A monitor that is Avalon LogEnabled and reports events on behalf of the
+ * EncoderManager component.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">
+ * Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class AvalonLoggingMonitor extends AbstractLogEnabled
+{
+}
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/MerlinEncoderManager.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/MerlinEncoderManager.java
Wed Mar 17 00:12:51 2004
@@ -0,0 +1,165 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.eve.encoder.impl ;
+
+
+import org.apache.eve.thread.ThreadPool ;
+import org.apache.eve.event.EventRouter ;
+import org.apache.eve.seda.DefaultStageConfig ;
+
+import org.apache.eve.encoder.EncoderManager ;
+
+import org.apache.avalon.framework.logger.Logger ;
+import org.apache.avalon.framework.logger.LogEnabled ;
+import org.apache.avalon.framework.activity.Startable ;
+import org.apache.avalon.framework.service.Serviceable ;
+import org.apache.avalon.framework.service.ServiceManager ;
+import org.apache.avalon.framework.activity.Initializable ;
+import org.apache.avalon.framework.service.ServiceException ;
+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.cornerstone.services.threads.ThreadManager ;
+
+
+/**
+ * A Merlin encoder manager.
+ *
+ * @avalon.component name="encoder-manager" lifestyle="singleton"
+ * @avalon.service type="org.apache.eve.encoder.EncoderManager"
+ * version="1.0"
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">
+ * Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class MerlinEncoderManager
+ implements
+ EncoderManager,
+ LogEnabled,
+ Initializable,
+ Configurable,
+ Serviceable,
+ Startable
+{
+ /** the Avalon logger enabled monitor for the EncoderManager */
+ private AvalonLoggingMonitor monitor = new AvalonLoggingMonitor() ;
+ /** underlying wrapped EncoderManager implementation */
+ private DefaultEncoderManager encoderManager = null ;
+ /** the stage configuration bean for the underlying EncoderManager */
+ private DefaultStageConfig stageConfig = null ;
+ /** the event router we depend on to recieve and publish events */
+ private EventRouter router = null ;
+ /** the thread manager used to access the thread pool used by the stage */
+ private ThreadManager tm = null ;
+
+
+ // ------------------------------------------------------------------------
+ // EncoderManager Interface Methods
+ // ------------------------------------------------------------------------
+
+
+ /* (non-Javadoc)
+ * @see org.apache.eve.processor.RequestProcessor#dummy()
+ */
+ public void dummy()
+ {
+ }
+
+
+ // ------------------------------------------------------------------------
+ // Avalon Life Cycle Methods ( in order of occurrence )
+ // ------------------------------------------------------------------------
+
+
+ /* (non-Javadoc)
+ * @see org.apache.avalon.framework.logger.LogEnabled#
+ * enableLogging(org.apache.avalon.framework.logger.Logger)
+ */
+ public void enableLogging( Logger logger )
+ {
+ monitor.enableLogging( logger ) ;
+ }
+
+
+ /**
+ * @avalon.dependency type="org.apache.eve.event.EventRouter"
+ * key="event-router" version="1.0"
+ * @avalon.dependency key="thread-manager"
+ * type="org.apache.avalon.cornerstone.services.threads.ThreadManager"
+ *
+ * @see org.apache.avalon.framework.service.Serviceable#service(
+ * org.apache.avalon.framework.service.ServiceManager)
+ */
+ public void service( ServiceManager manager ) throws ServiceException
+ {
+ tm = ( ThreadManager ) manager.lookup( "thread-manager" ) ;
+ router = ( EventRouter ) manager.lookup( "event-router" ) ;
+ }
+
+
+ /* (non-Javadoc)
+ * @see org.apache.avalon.framework.configuration.Configurable#configure(
+ * org.apache.avalon.framework.configuration.Configuration)
+ */
+ public void configure( Configuration config )
+ throws ConfigurationException
+ {
+ String name = config.getChild( "stage-name" ).getValue() ;
+ String pool = config.getChild( "thread-pool" ).getValue() ;
+
+ final org.apache.avalon.excalibur.thread.ThreadPool excaliburPool =
+ tm.getThreadPool( pool ) ;
+ ThreadPool tp = new ThreadPool()
+ {
+ public void execute( Runnable runnable )
+ {
+ excaliburPool.execute( runnable ) ;
+ }
+ } ;
+
+ stageConfig = new DefaultStageConfig( name, tp ) ;
+ }
+
+
+ /* (non-Javadoc)
+ * @see org.apache.avalon.framework.activity.Initializable#initialize()
+ */
+ public void initialize() throws Exception
+ {
+ //throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /* (non-Javadoc)
+ * @see org.apache.avalon.framework.activity.Startable#start()
+ */
+ public void start() throws Exception
+ {
+ //throw new NotImplementedException( "STUB" ) ;
+ }
+
+
+ /* (non-Javadoc)
+ * @see org.apache.avalon.framework.activity.Startable#stop()
+ */
+ public void stop() throws Exception
+ {
+ //throw new NotImplementedException( "STUB" ) ;
+ }
+}
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/MerlinEncoderManager.xconfig
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/java/org/apache/eve/encoder/impl/MerlinEncoderManager.xconfig
Wed Mar 17 00:12:51 2004
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<configuration>
+ <stage-name>encoder-manager</stage-name>
+ <thread-pool>encoder-manager</thread-pool>
+</configuration>
Added: incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/eve/encoder/impl/MerlinEncoderManagerTest.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/eve/frontend/encoder/merlin-impl/src/test/org/apache/eve/encoder/impl/MerlinEncoderManagerTest.java
Wed Mar 17 00:12:51 2004
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.eve.encoder.impl ;
+
+
+import org.apache.avalon.merlin.unit.AbstractMerlinTestCase ;
+
+import org.apache.eve.encoder.EncoderManager ;
+
+
+/**
+ * Tests the Merlin component within Merlin!
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">
+ * Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class MerlinEncoderManagerTest extends AbstractMerlinTestCase
+{
+ EncoderManager encman = null ;
+
+
+ public MerlinEncoderManagerTest( String a_name )
+ {
+ super( a_name ) ;
+ }
+
+
+ public static void main( String[] args )
+ {
+ junit.textui.TestRunner.run( MerlinEncoderManagerTest.class ) ;
+ }
+
+
+ /* (non-Javadoc)
+ * @see junit.framework.TestCase#setUp()
+ */
+ public void setUp() throws Exception
+ {
+ super.setUp() ;
+ encman = ( EncoderManager )
+ resolve( "/server/encoder-manager" ) ;
+ }
+
+
+ /* (non-Javadoc)
+ * @see junit.framework.TestCase#tearDown()
+ */
+ public void tearDown()
+ {
+ super.tearDown() ;
+ encman = null ;
+ }
+
+
+ public void testDummy()
+ {
+ encman.dummy() ;
+ }
+}
|