Search in sources :

Example 16 with Cache

use of org.apache.geode.cache.Cache in project geode by apache.

the class OrderByPartitionedDUnitTest method testLimitNotAppliedIfOrderByNotUsingIndex.

@Test
public void testLimitNotAppliedIfOrderByNotUsingIndex() throws Exception {
    Host host = Host.getHost(0);
    final VM vm0 = host.getVM(0);
    final VM vm1 = host.getVM(1);
    final VM vm2 = host.getVM(2);
    final VM vm3 = host.getVM(3);
    Cache cache = this.getCache();
    OrderByPartitionedJUnitTest test = createTestInstance();
    test.testLimitNotAppliedIfOrderByNotUsingIndex();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test) OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) DistributedTest(org.apache.geode.test.junit.categories.DistributedTest)

Example 17 with Cache

use of org.apache.geode.cache.Cache in project geode by apache.

the class OrderByPartitionedDUnitTest method testMultiColOrderByWithMultiIndexResultProjection.

@Test
public void testMultiColOrderByWithMultiIndexResultProjection() throws Exception {
    Host host = Host.getHost(0);
    final VM vm0 = host.getVM(0);
    final VM vm1 = host.getVM(1);
    final VM vm2 = host.getVM(2);
    final VM vm3 = host.getVM(3);
    Cache cache = this.getCache();
    OrderByPartitionedJUnitTest test = createTestInstance();
    test.testMultiColOrderByWithMultiIndexResultProjection();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test) OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) DistributedTest(org.apache.geode.test.junit.categories.DistributedTest)

Example 18 with Cache

use of org.apache.geode.cache.Cache in project geode by apache.

the class OrderByPartitionedDUnitTest method testMultiColOrderByWithIndexResultWithProjection.

@Test
public void testMultiColOrderByWithIndexResultWithProjection() throws Exception {
    Host host = Host.getHost(0);
    final VM vm0 = host.getVM(0);
    final VM vm1 = host.getVM(1);
    final VM vm2 = host.getVM(2);
    final VM vm3 = host.getVM(3);
    Cache cache = this.getCache();
    OrderByPartitionedJUnitTest test = createTestInstance();
    test.testMultiColOrderByWithIndexResultWithProjection();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test) OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) DistributedTest(org.apache.geode.test.junit.categories.DistributedTest)

Example 19 with Cache

use of org.apache.geode.cache.Cache in project geode by apache.

the class OrderByPartitionedDUnitTest method testMultiColOrderByWithMultiIndexResultDefaultProjection.

@Test
public void testMultiColOrderByWithMultiIndexResultDefaultProjection() throws Exception {
    Host host = Host.getHost(0);
    final VM vm0 = host.getVM(0);
    final VM vm1 = host.getVM(1);
    final VM vm2 = host.getVM(2);
    final VM vm3 = host.getVM(3);
    Cache cache = this.getCache();
    OrderByPartitionedJUnitTest test = createTestInstance();
    test.testMultiColOrderByWithMultiIndexResultDefaultProjection();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test) OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) DistributedTest(org.apache.geode.test.junit.categories.DistributedTest)

Example 20 with Cache

use of org.apache.geode.cache.Cache in project geode by apache.

the class OrderByPartitionedDUnitTest method testOrderedResultsPartitionedRegion_Bug43514_2.

@Test
public void testOrderedResultsPartitionedRegion_Bug43514_2() throws Exception {
    Host host = Host.getHost(0);
    final VM vm0 = host.getVM(0);
    final VM vm1 = host.getVM(1);
    final VM vm2 = host.getVM(2);
    final VM vm3 = host.getVM(3);
    Cache cache = this.getCache();
    OrderByPartitionedJUnitTest test = createTestInstance();
    test.testOrderedResultsPartitionedRegion_Bug43514_2();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test) OrderByPartitionedJUnitTest(org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest) DistributedTest(org.apache.geode.test.junit.categories.DistributedTest)

Aggregations

Cache (org.apache.geode.cache.Cache)1044 Region (org.apache.geode.cache.Region)478 Test (org.junit.Test)476 DistributedTest (org.apache.geode.test.junit.categories.DistributedTest)292 SerializableRunnable (org.apache.geode.test.dunit.SerializableRunnable)277 VM (org.apache.geode.test.dunit.VM)264 Host (org.apache.geode.test.dunit.Host)230 AttributesFactory (org.apache.geode.cache.AttributesFactory)229 PartitionedRegion (org.apache.geode.internal.cache.PartitionedRegion)177 PartitionAttributesFactory (org.apache.geode.cache.PartitionAttributesFactory)176 CacheSerializableRunnable (org.apache.geode.cache30.CacheSerializableRunnable)164 LocalRegion (org.apache.geode.internal.cache.LocalRegion)153 FlakyTest (org.apache.geode.test.junit.categories.FlakyTest)123 ClientCache (org.apache.geode.cache.client.ClientCache)117 SerializableCallable (org.apache.geode.test.dunit.SerializableCallable)112 Properties (java.util.Properties)101 CacheException (org.apache.geode.cache.CacheException)101 RegionAttributes (org.apache.geode.cache.RegionAttributes)99 QueryService (org.apache.geode.cache.query.QueryService)95 IntegrationTest (org.apache.geode.test.junit.categories.IntegrationTest)93