Search in sources :

Example 6 with GroupByTestInterface

use of org.apache.geode.cache.query.functional.GroupByTestInterface in project geode by apache.

the class GroupByDUnitImpl method testAggregateFuncWithOrderBy.

@Override
@Test
public void testAggregateFuncWithOrderBy() 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();
    GroupByTestInterface test = createTestInstance();
    test.testAggregateFuncWithOrderBy();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) GroupByTestInterface(org.apache.geode.cache.query.functional.GroupByTestInterface) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test)

Example 7 with GroupByTestInterface

use of org.apache.geode.cache.query.functional.GroupByTestInterface in project geode by apache.

the class GroupByDUnitImpl method testAggregateFuncAvgDistinct.

@Override
@Test
public void testAggregateFuncAvgDistinct() 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();
    GroupByTestInterface test = createTestInstance();
    test.testAggregateFuncAvgDistinct();
    ;
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) GroupByTestInterface(org.apache.geode.cache.query.functional.GroupByTestInterface) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test)

Example 8 with GroupByTestInterface

use of org.apache.geode.cache.query.functional.GroupByTestInterface in project geode by apache.

the class GroupByDUnitImpl method testAggregateFuncCountDistinctStar_2.

@Override
@Test
public void testAggregateFuncCountDistinctStar_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();
    GroupByTestInterface test = createTestInstance();
    test.testAggregateFuncCountDistinctStar_2();
    ;
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) GroupByTestInterface(org.apache.geode.cache.query.functional.GroupByTestInterface) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test)

Example 9 with GroupByTestInterface

use of org.apache.geode.cache.query.functional.GroupByTestInterface in project geode by apache.

the class GroupByDUnitImpl method testCompactRangeIndex.

@Override
@Test
public void testCompactRangeIndex() 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();
    GroupByTestInterface test = createTestInstance();
    test.testCompactRangeIndex();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) GroupByTestInterface(org.apache.geode.cache.query.functional.GroupByTestInterface) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test)

Example 10 with GroupByTestInterface

use of org.apache.geode.cache.query.functional.GroupByTestInterface in project geode by apache.

the class GroupByDUnitImpl method testAggregateFuncAvg.

@Override
@Test
public void testAggregateFuncAvg() 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();
    GroupByTestInterface test = createTestInstance();
    test.testAggregateFuncAvg();
    this.closeCache(vm0, vm1, vm2, vm3);
}
Also used : VM(org.apache.geode.test.dunit.VM) Host(org.apache.geode.test.dunit.Host) GroupByTestInterface(org.apache.geode.cache.query.functional.GroupByTestInterface) Cache(org.apache.geode.cache.Cache) Test(org.junit.Test)

Aggregations

Cache (org.apache.geode.cache.Cache)19 GroupByTestInterface (org.apache.geode.cache.query.functional.GroupByTestInterface)19 Host (org.apache.geode.test.dunit.Host)19 VM (org.apache.geode.test.dunit.VM)19 Test (org.junit.Test)19