use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryLimitOrderTest method testDescOrderLimit3WithFilter.
@Issue("4635")
@Test(description = "test series query result with LIMIT = 3, datetime filter, DESC")
public void testDescOrderLimit3WithFilter() throws Exception {
SeriesQuery query = new SeriesQuery(TEST_ENTITY, TEST_METRIC, TEST_SAMPLES[3].getRawDate(), Util.addOneMS(TEST_SAMPLES[4].getRawDate()));
query.setLimit(3);
query.setDirection("DESC");
assertSeriesQueryResult("Incorrect series query result with LIMIT = 3, datetime filter, DESC", query, TEST_SAMPLES[3], TEST_SAMPLES[4]);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryLimitOrderTest method testDescOrderLimit3.
@Issue("4635")
@Test(description = "test series query result with LIMIT = 3, DESC")
public void testDescOrderLimit3() throws Exception {
SeriesQuery query = new SeriesQuery(TEST_ENTITY, TEST_METRIC, MIN_QUERYABLE_DATE, MAX_QUERYABLE_DATE);
query.setLimit(3);
query.setDirection("DESC");
assertSeriesQueryResult("Incorrect series query result with LIMIT = 3, DESC", query, TEST_SAMPLES[2], TEST_SAMPLES[3], TEST_SAMPLES[4]);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryLimitOrderTest method testAscOrderLimit1Cache.
@Issue("4635")
@Test(description = "test series query result with LIMIT = 1, cache = true, ASC")
public void testAscOrderLimit1Cache() throws Exception {
SeriesQuery query = new SeriesQuery(TEST_ENTITY, TEST_METRIC, MIN_QUERYABLE_DATE, MAX_QUERYABLE_DATE);
query.setLimit(1);
query.setCache(true);
query.setDirection("ASC");
assertSeriesQueryResult("Incorrect series query result with LIMIT = 1, cache = true, ASC", query, TEST_SAMPLES[4]);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryLimitOrderTest method testDescOrderLimit1.
@Issue("4635")
@Test(description = "test series query result with LIMIT = 1, DESC")
public void testDescOrderLimit1() throws Exception {
SeriesQuery query = new SeriesQuery(TEST_ENTITY, TEST_METRIC, MIN_QUERYABLE_DATE, MAX_QUERYABLE_DATE);
query.setLimit(1);
query.setDirection("DESC");
assertSeriesQueryResult("Incorrect series query result with LIMIT = 1, DESC", query, TEST_SAMPLES[4]);
}
use of com.axibase.tsd.api.model.series.query.SeriesQuery in project atsd-api-test by axibase.
the class SeriesQueryLimitOrderTest method testAscOrderNoLimit.
@Issue("4635")
@Test(description = "test series query result with no LIMIT, ASC")
public void testAscOrderNoLimit() throws Exception {
SeriesQuery query = new SeriesQuery(TEST_ENTITY, TEST_METRIC, MIN_QUERYABLE_DATE, MAX_QUERYABLE_DATE);
query.setDirection("ASC");
assertSeriesQueryResult("Incorrect series query result with no LIMIT, ASC", query, TEST_SAMPLES[0], TEST_SAMPLES[1], TEST_SAMPLES[2], TEST_SAMPLES[3], TEST_SAMPLES[4]);
}
Aggregations