@@ -0,0 +1,2440 @@
+package org.cache2k.core.test;%0A%0A/*%0A * #%25L%0A * cache2k core package%0A * %25%25%0A * Copyright (C) 2000 - 2016 headissue GmbH, Munich%0A * %25%25%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as%0A * published by the Free Software Foundation, either version 3 of the %0A * License, or (at your option) any later version.%0A * %0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A * %0A * You should have received a copy of the GNU General Public %0A * License along with this program.  If not, see%0A * %3Chttp://www.gnu.org/licenses/gpl-3.0.html%3E.%0A * #L%25%0A */%0A%0Aimport org.cache2k.Cache;%0Aimport org.cache2k.CacheBuilder;%0Aimport org.cache2k.CacheEntry;%0Aimport org.cache2k.CacheEntryRemovedListener;%0Aimport org.cache2k.impl.InternalCache;%0Aimport org.cache2k.junit.FastTests;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.experimental.categories.Category;%0A%0A/**%0A * Test the basic operations on the wired cache.%0A *%0A * @see BasicCacheOperationsTest%0A * @see EntryProcessorCacheWrapper%0A * @see org.cache2k.impl.WiredCache%0A */%0A@Category(FastTests.class)%0Apublic class BasicCacheOperationsWiredCacheTest extends BasicCacheOperationsTest %7B%0A%0A  static Cache%3CInteger, Integer%3E staticCache;%0A%0A  /**%0A   * Add an empty removal listener to trigger the switch to the%0A   * wired cache implementation.%0A   */%0A  @BeforeClass%0A  public static void setUp() %7B%0A    Cache%3CInteger, Integer%3E  c =%0A      CacheBuilder.newCache(Integer.class, Integer.class)%0A        .name(BasicCacheOperationsTest.class)%0A        .eternal(true)%0A        .entryCapacity(1000)%0A        .addSynchronousListener(new CacheEntryRemovedListener%3CInteger, Integer%3E() %7B%0A          @Override%0A          public void onEntryRemoved(final Cache%3CInteger, Integer%3E c, final CacheEntry%3CInteger, Integer%3E entry) %7B%0A%0A          %7D%0A        %7D)%0A        .build();%0A    staticCache = c;%0A  %7D%0A%0A  @Before%0A  public void initCache() %7B%0A    cache = staticCache;%0A    statistics().reset();%0A  %7D%0A%0A  @After%0A  public void cleanupCache() %7B%0A    staticCache.requestInterface(InternalCache.class).checkIntegrity();%0A    cache.clear();%0A  %7D%0A%0A  @AfterClass%0A  public static void tearDown() %7B%0A    staticCache.close();%0A  %7D%0A%0A%7D%0A

add tests