Quiet JUnite test issues

* BdbModuleTest.java, CachedBdbMapTest.java
    use putIfAbsent() in preference to put() (which logs warning)
* BdbModule.java
    register big-cache DBs in implementation-specific methods, so always auto-closed on env close
This commit is contained in:
gojomo committed 2009-09-29 19:22:23 +00:00
1 parent 99020c4981
commit 5a0fe30366
3 files changed
+7 -4

No files matched your search

@@ -389,6 +389,7 @@ Serializable, Closeable {
}
CachedBdbMap<K, V> r = new CachedBdbMap<K,V>(dbName);
r.initialize(bdbEnvironment, key, value, classCatalog);
oiCaches.put(dbName, r);
return r;
}
@@ -417,6 +418,7 @@ Serializable, Closeable {
}
ObjectIdentityBdbCache<V> oic = new ObjectIdentityBdbCache<V>();
oic.initialize(bdbEnvironment, dbName, valueClass, classCatalog);
oiCaches.put(dbName, oic);
return oic;
}
@@ -451,7 +453,6 @@ Serializable, Closeable {
} else {
oic = getCBMMap(dbName, recycle, String.class, valueClass);
}
oiCaches.put(dbName, oic);
return oic;
}