@return a sub query object with some defaults set for testing
()
| 622 | |
| 623 | /** @return a sub query object with some defaults set for testing */ |
| 624 | public static TSSubQuery getBaseQuery() { |
| 625 | TSSubQuery query = new TSSubQuery(); |
| 626 | query.setAggregator("sum"); |
| 627 | query.setMetric("foo"); |
| 628 | HashMap<String, String> tags = new HashMap<String, String>(2); |
| 629 | tags.put("host", "web01"); |
| 630 | tags.put("dc", "lax"); |
| 631 | query.setTags(tags); |
| 632 | query.setRate(true); |
| 633 | query.setRateOptions(new RateOptions(true, 1024, 16)); |
| 634 | return query; |
| 635 | } |
| 636 | |
| 637 | /** |
| 638 | * Sets up an object with good, common values for testing the validation |
no test coverage detected