X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fio%2Fcache%2FAppCacheTest.java;h=56380287b25db830cc3fa8e996080d23b89e395f;hb=42b89f52a75cb734184407e3ab1c61c48a5b6370;hp=ef75869ac159811978220896f824e27ceb736d5a;hpb=cdc45593d3a88815b578481f711cadad6ccfe262;p=jalview.git diff --git a/test/jalview/io/cache/AppCacheTest.java b/test/jalview/io/cache/AppCacheTest.java index ef75869..5638028 100644 --- a/test/jalview/io/cache/AppCacheTest.java +++ b/test/jalview/io/cache/AppCacheTest.java @@ -48,26 +48,14 @@ public class AppCacheTest @Test(groups = { "Functional" }) public void appCacheLimitTest() { - String limit = appCache.getCacheLmit(TEST_CACHE_KEY); + String limit = appCache.getCacheLimit(TEST_CACHE_KEY); Assert.assertEquals(limit, "99"); - limit = String.valueOf(appCache.updateCacheLimit(TEST_CACHE_KEY, "20")); + limit = String.valueOf(appCache.updateCacheLimit(TEST_CACHE_KEY, 20)); Assert.assertEquals(limit, "20"); - limit = appCache.getCacheLmit(TEST_CACHE_KEY); + limit = appCache.getCacheLimit(TEST_CACHE_KEY); Assert.assertEquals(limit, "20"); - appCache.updateCacheLimit(TEST_CACHE_KEY, "99"); + appCache.updateCacheLimit(TEST_CACHE_KEY, 99); } - @Test(groups = { "Functional" }) - public void initCacheTest() - { - appCache.initCache(TEST_CACHE_KEY); - Assert.assertTrue(appCache.getCacheItems().containsKey(TEST_CACHE_KEY)); - generateTestCacheItems(); - // appCache. - appCache.initCache(TEST_CACHE_KEY); - // - Assert.assertTrue(appCache.getCacheItems().containsKey(TEST_CACHE_KEY)); - appCache.deleteCacheItems(TEST_CACHE_KEY); - } }