[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/tests TTLTest.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Tue Sep 21 22:18:10 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/tests
In directory jcorp2.servlets.net:/tmp/cvs-serv14933/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/tests

Modified Files:
	TTLTest.java 
Log Message:
fixed compiler warnings


Index: TTLTest.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/cache/tests/TTLTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TTLTest.java	27 Oct 2003 19:10:30 -0000	1.2
--- TTLTest.java	22 Sep 2004 05:18:08 -0000	1.3
***************
*** 61,68 ****
              throws Exception {
          try {
!             cm.createCache(TestSystemInitializer.getTestContext(), cacheName, false);
  
              /* Create an ordered cache as well */
!             cm.createCache(TestSystemInitializer.getTestContext(), cacheName + "O", true);
          } catch (java.util.ConcurrentModificationException cme) {
              log.error("Error Setting Up", cme);
--- 61,68 ----
              throws Exception {
          try {
!             CacheManager.createCache(TestSystemInitializer.getTestContext(), cacheName, false);
  
              /* Create an ordered cache as well */
!             CacheManager.createCache(TestSystemInitializer.getTestContext(), cacheName + "O", true);
          } catch (java.util.ConcurrentModificationException cme) {
              log.error("Error Setting Up", cme);
***************
*** 76,88 ****
      public synchronized void testUnorderedCacheTTL() {
          try {
!             CacheSystem cs = cm.getCacheSystem(TestSystemInitializer.getTestContext());
  
              ValidValue b = new ValidValue("b", "BE!");
  
!             if (cm.existsCache(TestSystemInitializer.getTestContext(), cacheName)) {
                  if (log.isInfoEnabled()) {
                      log.info("Clearing cache: " + cacheName);
                  }
!                 cm.clear(TestSystemInitializer.getTestContext(), cacheName);
              }
  
--- 76,88 ----
      public synchronized void testUnorderedCacheTTL() {
          try {
!             CacheSystem cs = CacheManager.getCacheSystem(TestSystemInitializer.getTestContext());
  
              ValidValue b = new ValidValue("b", "BE!");
  
!             if (CacheManager.existsCache(TestSystemInitializer.getTestContext(), cacheName)) {
                  if (log.isInfoEnabled()) {
                      log.info("Clearing cache: " + cacheName);
                  }
!                 CacheManager.clear(TestSystemInitializer.getTestContext(), cacheName);
              }
  
***************
*** 91,95 ****
              Thread.sleep(1000);
  
!             ValidValue retrieved = (ValidValue) cm.getItem(TestSystemInitializer.getTestContext(),
                      cacheName,
                      "b");
--- 91,95 ----
              Thread.sleep(1000);
  
!             ValidValue retrieved = (ValidValue) CacheManager.getItem(TestSystemInitializer.getTestContext(),
                      cacheName,
                      "b");
***************
*** 111,123 ****
      public synchronized void testOrderedCacheTTL() {
          try {
!             CacheSystem cs = cm.getCacheSystem(TestSystemInitializer.getTestContext());
  
              ValidValue b = new ValidValue("b", "BE!");
  
!             if (cm.existsCache(TestSystemInitializer.getTestContext(), cacheName + "O")) {
                  if (log.isInfoEnabled()) {
                      log.info("Clearing cache: " + cacheName + "O");
                  }
!                 cm.clear(TestSystemInitializer.getTestContext(), cacheName + "O");
              }
  
--- 111,123 ----
      public synchronized void testOrderedCacheTTL() {
          try {
!             CacheSystem cs = CacheManager.getCacheSystem(TestSystemInitializer.getTestContext());
  
              ValidValue b = new ValidValue("b", "BE!");
  
!             if (CacheManager.existsCache(TestSystemInitializer.getTestContext(), cacheName + "O")) {
                  if (log.isInfoEnabled()) {
                      log.info("Clearing cache: " + cacheName + "O");
                  }
!                 CacheManager.clear(TestSystemInitializer.getTestContext(), cacheName + "O");
              }
  



More information about the cvs mailing list