Search in sources :

Example 11 with GroupByTestInterface

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

the class GroupByDUnitImpl method testConvertibleGroupByQuery_refer_column.

@Override
@Test
public void testConvertibleGroupByQuery_refer_column() 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.testConvertibleGroupByQuery_refer_column();
    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 12 with GroupByTestInterface

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

the class GroupByDUnitImpl method testLimitWithGroupBy.

@Test
public void testLimitWithGroupBy() 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.testLimitWithGroupBy();
    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 13 with GroupByTestInterface

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

the class GroupByDUnitImpl method testAggregateFuncNoGroupBy.

@Override
@Test
public void testAggregateFuncNoGroupBy() 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.testAggregateFuncNoGroupBy();
    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 14 with GroupByTestInterface

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

the class GroupByDUnitImpl method testAggregateFuncSum.

@Override
@Test
public void testAggregateFuncSum() 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.testAggregateFuncSum();
    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 15 with GroupByTestInterface

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

the class GroupByDUnitImpl method testAggregateFuncMax.

@Override
@Test
public void testAggregateFuncMax() 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.testAggregateFuncMax();
    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