Search in sources :

Example 1 with OrderByPartitionedJUnitTest

use of org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest 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 2 with OrderByPartitionedJUnitTest

use of org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest 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 3 with OrderByPartitionedJUnitTest

use of org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest 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 4 with OrderByPartitionedJUnitTest

use of org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest 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 5 with OrderByPartitionedJUnitTest

use of org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest 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

OrderByPartitionedJUnitTest (org.apache.geode.cache.query.functional.OrderByPartitionedJUnitTest)13 Host (org.apache.geode.test.dunit.Host)13 VM (org.apache.geode.test.dunit.VM)13 Cache (org.apache.geode.cache.Cache)12 DistributedTest (org.apache.geode.test.junit.categories.DistributedTest)12 Test (org.junit.Test)12 Region (org.apache.geode.cache.Region)1 Index (org.apache.geode.cache.query.Index)1 IndexType (org.apache.geode.cache.query.IndexType)1