avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test LogKitTestComponent.java LogKitTestComponentImpl.java LogKitManagementTest.java LogKitManagementTestCase.java TestComponentImpl.java TestComponent.java
Date Tue, 24 Feb 2004 11:41:51 GMT
cziegeler    2004/02/24 03:41:51

  Modified:    logger/logkit/src/test/org/apache/avalon/excalibur/logger/test
                        LogKitManagementTest.java
                        LogKitManagementTestCase.java
  Added:       logger/logkit/src/test/org/apache/avalon/excalibur/logger/test
                        LogKitTestComponent.java
                        LogKitTestComponentImpl.java
  Removed:     logger/logkit/src/test/org/apache/avalon/excalibur/logger/test
                        TestComponentImpl.java TestComponent.java
  Log:
  Removing another set of duplicate code and update license
  
  Revision  Changes    Path
  1.3       +2 -1      avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTest.java
  
  Index: LogKitManagementTest.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LogKitManagementTest.java	24 Feb 2004 11:30:20 -0000	1.2
  +++ LogKitManagementTest.java	24 Feb 2004 11:41:51 -0000	1.3
  @@ -18,6 +18,7 @@
   
   import java.io.InputStream;
   
  +import org.apache.avalon.excalibur.logger.DefaultLogKitManager;
   import org.apache.avalon.excalibur.logger.LogKitManager;
   import org.apache.avalon.framework.configuration.Configuration;
   import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
  
  
  
  1.3       +5 -5      avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTestCase.java
  
  Index: LogKitManagementTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test/LogKitManagementTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LogKitManagementTestCase.java	24 Feb 2004 11:30:20 -0000	1.2
  +++ LogKitManagementTestCase.java	24 Feb 2004 11:41:51 -0000	1.3
  @@ -45,11 +45,11 @@
       public void testComponent()
           throws CascadingAssertionFailedError
       {
  -        TestComponent tc = null;
  +        LogKitTestComponent tc = null;
   
           try
           {
  -            tc = (TestComponent)lookup( TestComponent.ROLE + "/A" );
  +            tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/A" );
               tc.test( getLogEnabledLogger(), "Test log entry A" );
           }
           catch( Exception e )
  @@ -64,7 +64,7 @@
   
           try
           {
  -            tc = (TestComponent)lookup( TestComponent.ROLE + "/B" );
  +            tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/B" );
               tc.test( getLogEnabledLogger(), "Test log entry B" );
           }
           catch( Exception e )
  @@ -79,7 +79,7 @@
   
           try
           {
  -            tc = (TestComponent)lookup( TestComponent.ROLE + "/C" );
  +            tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/C" );
               tc.test( getLogEnabledLogger(), "Test log entry C" );
           }
           catch( Exception e )
  
  
  
  1.1                  avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test/LogKitTestComponent.java
  
  Index: LogKitTestComponent.java
  ===================================================================
  /* 
   * Copyright 2002-2004 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.avalon.excalibur.logger.test;
  
  import org.apache.avalon.framework.component.Component;
  import org.apache.avalon.framework.logger.Logger;
  
  /**
   * TestComponent.
   *
   * @author <a href="mailto:giacomo@apache,org">Giacomo Pati</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/02/24 11:41:51 $
   */
  public interface LogKitTestComponent
      extends Component
  {
      String ROLE = LogKitTestComponent.class.getName();
  
      void test( Logger defaultLogger, String message );
  }
  
  
  
  1.1                  avalon-excalibur/logger/logkit/src/test/org/apache/avalon/excalibur/logger/test/LogKitTestComponentImpl.java
  
  Index: LogKitTestComponentImpl.java
  ===================================================================
  /* 
   * Copyright 2002-2004 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.avalon.excalibur.logger.test;
  
  import org.apache.avalon.framework.logger.AbstractLogEnabled;
  import org.apache.avalon.framework.logger.Logger;
  
  /**
   * TestComponent.
   *
   * @author <a href="mailto:giacomo@apache,org">Giacomo Pati</a>
   * @version CVS $Revision: 1.1 $ $Date: 2004/02/24 11:41:51 $
   */
  public class LogKitTestComponentImpl
      extends AbstractLogEnabled
      implements LogKitTestComponent
  {
      public void test( Logger defaultLogger, String message )
      {
          final Logger logger = getLogger();
          //final String cat = logger.getCategory();
          //defaultLogger.info( "Category is " + cat );
          logger.debug( message );
          logger.info( message );
          logger.warn( message );
          logger.error( message );
          logger.fatalError( message );
      }
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message