/** * Verifies stream tests work when rehash is disabled */ @Test(groups = "functional", testName = "streams.DistributedNonRehashStreamTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class DistributedNonRehashStreamTest extends DistributedStreamTest { @Override protected <E> CacheStream<E> createStream(CacheCollection<E> entries) { return entries.stream().disableRehashAware().parallelDistribution(); } }
/** * Verifies stream tests work when stream is parallel with parallel distribution */ @Test(groups = "functional", testName = "streams.DistributedParallelStreamTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class DistributedParallelStreamTest extends DistributedStreamTest { @Override protected <E> CacheStream<E> createStream(CacheCollection<E> entries) { return entries.parallelStream().parallelDistribution(); } }
/** * Verifies stream tests work when rehash is disabled on a parallel stream with parallel distribution */ @Test(groups = "functional", testName = "streams.DistributedParallelNonRehashStreamTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class DistributedParallelNonRehashStreamTest extends DistributedStreamTest { @Override protected <E> CacheStream<E> createStream(CacheCollection<E> entries) { return entries.parallelStream().disableRehashAware().parallelDistribution(); } }
/** * Verifies stream tests work when rehash is disabled on a sequential stream */ @Test(groups = "functional", testName = "streams.DistributedSequentialNonRehashStreamTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class DistributedSequentialNonRehashStreamTest extends DistributedStreamTest { @Override protected <E> CacheStream<E> createStream(CacheCollection<E> entries) { return entries.stream().sequentialDistribution().disableRehashAware(); } }
/** * Verifies stream tests work on a sequential stream */ @Test(groups = "functional", testName = "streams.DistributedSequentialStreamTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class DistributedSequentialStreamTest extends DistributedStreamTest { @Override protected <E> CacheStream<E> createStream(CacheCollection<E> entries) { return entries.stream().sequentialDistribution(); } }
@Test(groups = "stress", testName = "functional.stress.ReadOnlyKeyCommandStressTest") @InCacheMode(CacheMode.DIST_SYNC) public class ReadOnlyKeyCommandStressTest extends GetAllCommandStressTest { @Override protected void workerLogic(Cache<Integer, Integer> cache, Set<Integer> threadKeys, int iteration) { FunctionalMap.ReadOnlyMap<Integer, Integer> ro = ReadOnlyMapImpl.create(FunctionalMapImpl.create(cache.getAdvancedCache())); List<CompletableFuture> futures = new ArrayList(threadKeys.size()); for (Integer key : threadKeys) { futures.add(ro.eval(key, (view -> view.get() + 1)).thenAccept(value -> assertEquals(Integer.valueOf(key + 1), value))); } futures.stream().forEach(f -> f.join()); } }
/** * Tests if the conditional commands correctly fetch the value from cache loader even with the skip cache load/store * flags. * <p/> * The configuration used is a non-tx distributed cache with passivation. * * @author Pedro Ruivo * @since 7.0 */ @Test(groups = "functional", testName = "persistence.ClusteredConditionalCommandPassivationTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class ClusteredConditionalCommandPassivationTest extends ClusteredConditionalCommandTest { public ClusteredConditionalCommandPassivationTest() { super(false, true); } }
@Test (groups = "functional", testName = "api.GetOnRemovedKeyTest") @InCacheMode({ CacheMode.REPL_SYNC, CacheMode.DIST_SYNC }) public class GetOnRemovedKeyTest extends MultipleCacheManagersTest {
@Test(groups = "stress", testName = "ReadOnlyManyCommandStressTest", timeOut = 15*60*1000) @InCacheMode(CacheMode.SCATTERED_SYNC) public class ReadOnlyManyCommandStressTest extends GetAllCommandStressTest {
@Test(groups = "functional", testName = "notifications.cachelistener.cluster.ClusteredListenerJoinsTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class ClusteredListenerJoinsTest extends MultipleCacheManagersTest {
@InCacheMode({ CacheMode.INVALIDATION_SYNC, CacheMode.DIST_SYNC, CacheMode.REPL_SYNC, CacheMode.SCATTERED_SYNC }) public class ClusterCacheLoaderTest extends MultipleCacheManagersTest {
@Test(groups = "functional", testName = "partitionhandling.PartitionHappeningTest") @InCacheMode({CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class PartitionHappeningTest extends BasePartitionHandlingTest {
@Test(groups = "functional", testName = "distribution.PutMapReturnValueTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.REPL_SYNC }) public class PutMapReturnValueTest extends MultipleCacheManagersTest {
@Test(groups = "functional", testName = "distribution.rehash.RehashAfterPartitionMergeTest") @InCacheMode({ CacheMode.DIST_SYNC, CacheMode.SCATTERED_SYNC }) public class RehashAfterPartitionMergeTest extends MultipleCacheManagersTest {
@InCacheMode(CacheMode.DIST_SYNC) public void testPutIfAbsentOnBackupOwnerShared() { doTest(this.caches(SHARED_STORE_CACHE_NAME), ConditionalOperation.PUT_IF_ABSENT, Ownership.BACKUP, null, true); }
@InCacheMode(CacheMode.DIST_SYNC) public void testReplaceOnBackupOwnerShared() { doTest(this.caches(SHARED_STORE_CACHE_NAME), ConditionalOperation.REPLACE, Ownership.BACKUP, null, true); }
@InCacheMode(CacheMode.DIST_SYNC) public void testReplaceIfOnBackupOwnerWithIgnoreReturnValuesShared() { doTest(this.caches(SHARED_STORE_CACHE_NAME), ConditionalOperation.REPLACE_IF, Ownership.BACKUP, Flag.IGNORE_RETURN_VALUES, true); }
@InCacheMode(CacheMode.DIST_SYNC) public void testRemoveIfOnBackupOwnerWithIgnoreReturnValuesShared() { doTest(this.caches(SHARED_STORE_CACHE_NAME), ConditionalOperation.REMOVE_IF, Ownership.BACKUP, Flag.IGNORE_RETURN_VALUES, true); }
@InCacheMode(CacheMode.DIST_SYNC) public void testRemoveIfOnBackupOwnerShared() { doTest(this.caches(SHARED_STORE_CACHE_NAME), ConditionalOperation.REMOVE_IF, Ownership.BACKUP, null, true); }
@InCacheMode(CacheMode.DIST_SYNC) public void testReplaceOnBackupOwnerWithSkipCacheLoaderShared() { doTest(this.caches(SHARED_STORE_CACHE_NAME), ConditionalOperation.REPLACE, Ownership.BACKUP, Flag.SKIP_CACHE_LOAD, true); }