hchar 2005/01/27 03:07:54
Modified: sandbox/yajcache/test/org/apache/jcs/yajcache/core
CacheManagerTest.java SafeCacheManagerTest.java
Log:
package rename + assert
Revision Changes Path
1.2 +5 -3
jakarta-turbine-jcs/sandbox/yajcache/test/org/apache/jcs/yajcache/core/CacheManagerTest.java
Index: CacheManagerTest.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-jcs/sandbox/yajcache/test/org/apache/jcs/yajcache/core/CacheManagerTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CacheManagerTest.java 22 Jan 2005 21:35:15 -0000 1.1
+++ CacheManagerTest.java 27 Jan 2005 11:07:54 -0000 1.2
@@ -20,7 +20,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.jcs.yajcache.annotate.*;
+import org.apache.jcs.yajcache.lang.annotation.*;
/**
*
@@ -32,6 +32,8 @@
private Log log = LogFactory.getLog(this.getClass());
public void testGetCache() {
+ CacheManager.inst.getCache("myCache", String.class);
+ CacheManager.inst.removeCache("myCache");
log.debug("Test getCache and get");
ICache<String> c = CacheManager.inst.getCache("myCache",
String.class);
assertTrue(null == c.get("bla"));
@@ -63,7 +65,7 @@
log.debug("Test checking of cache value type");
try {
ICache<Integer> c2 = CacheManager.inst.getCache("myCache",
Integer.class);
- fail("Bug: Cache for string cannot be used for Integer.");
+ assert false : "Bug: Cache for string cannot be used for
Integer";
} catch(ClassCastException ex) {
// should go here.
}
@@ -77,7 +79,7 @@
+ "race condition in creating cache AND class cast
exception");
try {
ICache<Double> doubleCache =
CacheManager.inst.testCreateCacheRaceCondition("race", Double.class);
- fail("Bug: Cache for Integer cannot be used for Double.");
+ assert false : "Bug: Cache for Integer cannot be used for
Double";
} catch(ClassCastException ex) {
// should go here.
}
1.2 +4 -4
jakarta-turbine-jcs/sandbox/yajcache/test/org/apache/jcs/yajcache/core/SafeCacheManagerTest.java
Index: SafeCacheManagerTest.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-jcs/sandbox/yajcache/test/org/apache/jcs/yajcache/core/SafeCacheManagerTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- SafeCacheManagerTest.java 22 Jan 2005 21:35:15 -0000 1.1
+++ SafeCacheManagerTest.java 27 Jan 2005 11:07:54 -0000 1.2
@@ -21,7 +21,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.apache.jcs.yajcache.annotate.*;
+import org.apache.jcs.yajcache.lang.annotation.*;
/**
*
@@ -64,7 +64,7 @@
log.debug("Test checking of cache value type");
try {
ICacheSafe<Integer> c2 =
SafeCacheManager.inst.getCache("myCache", Integer.class);
- fail("Bug: Cache for string cannot be used for Integer.");
+ assert false : "Bug: Cache for string cannot be used for
Integer.";
} catch(ClassCastException ex) {
// should go here.
}
@@ -78,7 +78,7 @@
+ "race condition in creating cache AND class cast
exception");
try {
ICacheSafe<Double> doubleCache =
SafeCacheManager.inst.testCreateCacheRaceCondition("race", Double.class);
- fail("Bug: Cache for Integer cannot be used for Double.");
+ assert false : "Bug: Cache for Integer cannot be used for
Double.";
} catch(ClassCastException ex) {
// should go here.
}
@@ -161,7 +161,7 @@
log.debug("Test checking of cache value type");
try {
ICacheSafe<Integer> c2 =
SafeCacheManager.inst.getCache("myCache", Integer.class);
- fail("Bug: Cache for string cannot be used for Integer.");
+ assert false : "Bug: Cache for string cannot be used for
Integer.";
} catch(ClassCastException ex) {
// should go here.
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]