Sets up an object with good, common values for testing the validation function with an query string query. Each test can "set" the method it wants to fool with and call .validateAndSetQuery() Warning: This method calls into TestTSQuery @return A query object
()
| 680 | * @return A query object |
| 681 | */ |
| 682 | private TSQuery getMetricForValidate() { |
| 683 | final TSQuery query = new TSQuery(); |
| 684 | query.setStart("1356998400"); |
| 685 | query.setEnd("1356998460"); |
| 686 | final ArrayList<TSSubQuery> subs = new ArrayList<TSSubQuery>(1); |
| 687 | subs.add(TestTSSubQuery.getMetricForValidate()); |
| 688 | query.setQueries(subs); |
| 689 | return query; |
| 690 | } |
| 691 | } |
no test coverage detected