X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Fjalview%2Fio%2Fcache%2FAppCacheTest.java;h=c5fb5dfe2f30d67b7a0ecdadd79763c899bb6380;hb=20d8cc2bb3e2fab2b7f637a3d523c90ceb58903d;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..c5fb5df 100644 --- a/test/jalview/io/cache/AppCacheTest.java +++ b/test/jalview/io/cache/AppCacheTest.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.io.cache; import java.util.LinkedHashSet; @@ -48,26 +68,13 @@ 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"); - } - - @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); + appCache.updateCacheLimit(TEST_CACHE_KEY, 99); } }