portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pau...@apache.org
Subject cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/services/portletcache TestTurbineCache.java
Date Wed, 23 Jan 2002 22:29:23 GMT
paulsp      02/01/23 14:29:23

  Modified:    src/java/org/apache/jetspeed/services/portletcache
                        TestTurbineCache.java
  Log:
  Changed logger.warn() to new getLogger().warn() and commented out the
  statement.  This was because logger.warn() is private in Cactus 1.2 and
  protected in the current cvs, as of 01-dec-2001.  In the same patch that made
  logger.warn() protected, getLogger was introducted.  The problem is
  logger.warn() works when running Cactus on the locally, but Gump uses
  Cactus from the CVS!
  
  Revision  Changes    Path
  1.2       +15 -15    jakarta-jetspeed/src/java/org/apache/jetspeed/services/portletcache/TestTurbineCache.java
  
  Index: TestTurbineCache.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/portletcache/TestTurbineCache.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestTurbineCache.java	22 Jan 2002 17:11:21 -0000	1.1
  +++ TestTurbineCache.java	23 Jan 2002 22:29:23 -0000	1.2
  @@ -72,7 +72,7 @@
    * TestTurbineCache
    *
    * @author <a href="paulsp@apache.org">Paul Spencer</a>
  - * @version $Id: TestTurbineCache.java,v 1.1 2002/01/22 17:11:21 paulsp Exp $
  + * @version $Id: TestTurbineCache.java,v 1.2 2002/01/23 22:29:23 paulsp Exp $
    */
   public class TestTurbineCache extends ServletTestCase {
       
  @@ -101,7 +101,7 @@
       }
    
       public void setup() {
  -        logger.warn("Caching test may take a few minutes");
  +//        getLogger().warn("Caching test may take a few minutes");
           System.out.println("Caching test may take a few minutes");
       }
       /**
  @@ -222,7 +222,7 @@
           Object retrievedObject = null;
           CachedObject cacheObject = null;
           
  -        logger.warn("This test will take a few mintes");
  +//        getLogger().warn("This test will take a few mintes");
           System.out.println("This test will take a few mintes");
           
           GlobalCacheService globalCache = (GlobalCacheService)TurbineServices
  @@ -288,8 +288,8 @@
               System.out.println( "* This test will NOT be run because the cache patch to
Turbine has");
               System.out.println( "* not been applied.");
               System.out.println( "*** ");
  -            logger.warn( "This test will NOT be run because the  "
  -            + "cache patch to Turbine has not been applied.");
  +//            getLogger().warn( "This test will NOT be run because the  "
  +//            + "cache patch to Turbine has not been applied.");
           }
   
   /*
  @@ -341,8 +341,8 @@
               System.out.println( "* This test will NOT be run because the cache patch to
Turbine has");
               System.out.println( "* not been applied.");
               System.out.println( "*** ");
  -            logger.warn( "This test will NOT be run because the  "
  -            + "cache patch to Turbine has not been applied.");
  +//            getLogger().warn( "This test will NOT be run because the  "
  +//            + "cache patch to Turbine has not been applied.");
           }
           
   /*
  @@ -432,8 +432,8 @@
                   System.out.println( "* It appears the cache patch to Turbine MAY be applied,
but");
                   System.out.println( "* this test has not been updated!");
                   System.out.println( "*** ");
  -                logger.warn( "It appears the cache patch to Turbine has "
  -                + "been applied, but this test has not been updated!");
  +//                getLogger().warn( "It appears the cache patch to Turbine has "
  +//                + "been applied, but this test has not been updated!");
               }
           } catch (ObjectExpiredException e) {
               /* FIXME: Remove the if test and false section when the caching
  @@ -450,7 +450,7 @@
                   System.out.println( "Received unexpected ObjectExpiredException exception
"
                   + "when retrieving refreshable object after ( "
                   + (System.currentTimeMillis() - addTime) + " millis)");
  -                logger.warn("Refreshable object did NOT refresh.  Their is a Turbine patch
to fix this problem.");
  +//                getLogger().warn("Refreshable object did NOT refresh.  Their is a Turbine
patch to fix this problem.");
               }
           } catch (Exception e) {
               throw e;
  @@ -527,7 +527,7 @@
                   System.out.println( "* Their is a Turbine patch to resolve the following
error");
                   System.out.println( "*** ");
                   System.out.println( "Object expired early ( " + (System.currentTimeMillis()
- addTime) + " millis)");
  -                logger.warn( "Object expired early ( " + (System.currentTimeMillis() -
addTime) + " millis)" );
  +//                getLogger().warn( "Object expired early ( " + (System.currentTimeMillis()
- addTime) + " millis)" );
               }
           } catch (Exception e) {
               throw e;
  @@ -555,9 +555,9 @@
                   System.out.println(  "Received unexpected ObjectExpiredException exception
"
                   + "when retrieving refreshable object after ( "
                   + (System.currentTimeMillis() - addTime) + " millis)");
  -                logger.warn( "Received unexpected ObjectExpiredException exception "
  -                + "when retrieving refreshable object after ( "
  -                + (System.currentTimeMillis() - addTime) + " millis)");
  +//                getLogger().warn( "Received unexpected ObjectExpiredException exception
"
  +//                + "when retrieving refreshable object after ( "
  +//                + (System.currentTimeMillis() - addTime) + " millis)");
               }
           } catch (Exception e) {
               throw e;
  @@ -579,7 +579,7 @@
                   System.out.println( "* Their is a Turbine patch to resolve the following
error");
                   System.out.println( "*** ");
                   System.out.println( "Retrieved the expired cached object, but caught expected
ObjectExpiredException exception");
  -                logger.warn( "Retrieved the expired cached object, but caught expected
ObjectExpiredException exception");
  +//                getLogger().warn( "Retrieved the expired cached object, but caught expected
ObjectExpiredException exception");
               }
           } catch (Exception e) {
               throw e;
  
  
  

--
To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>


Mime
View raw message