@@ -0,0 +1,1968 @@
+/*%0A * Copyright 2014 Rackspace%0A *%0A *    Licensed under the Apache License, Version 2.0 (the %22License%22);%0A *    you may not use this file except in compliance with the License.%0A *    You may obtain a copy of the License at%0A *%0A *        http://www.apache.org/licenses/LICENSE-2.0%0A *%0A *    Unless required by applicable law or agreed to in writing, software%0A *    distributed under the License is distributed on an %22AS IS%22 BASIS,%0A *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A *    See the License for the specific language governing permissions and%0A *    limitations under the License.%0A */%0A%0Apackage com.rackspacecloud.blueflood.utils;%0A%0Aimport com.rackspacecloud.blueflood.outputs.serializers.BasicRollupsOutputSerializer;%0Aimport com.rackspacecloud.blueflood.outputs.utils.PlotRequestParser;%0Aimport junit.framework.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.util.*;%0A%0Apublic class PlotRequestParserTest %7B%0A%0A    @Test%0A    public void testSelectParams() %7B%0A        List%3CString%3E stats = new ArrayList%3CString%3E();%0A        stats.add(%22average%22);%0A        stats.add(%22min%22);%0A        stats.add(%22max%22);%0A        Set%3CBasicRollupsOutputSerializer.MetricStat%3E filters = PlotRequestParser.getStatsToFilter(stats);%0A%0A        Assert.assertTrue(filters.contains(BasicRollupsOutputSerializer.MetricStat.AVERAGE));%0A        Assert.assertTrue(filters.contains(BasicRollupsOutputSerializer.MetricStat.MIN));%0A        Assert.assertTrue(filters.contains(BasicRollupsOutputSerializer.MetricStat.MAX));%0A%0A        // Alternate comma delimited notation%0A        stats = new ArrayList%3CString%3E();%0A        stats.add(%22average,min,max%22);%0A        filters = PlotRequestParser.getStatsToFilter(stats);%0A        Assert.assertTrue(filters.contains(BasicRollupsOutputSerializer.MetricStat.AVERAGE));%0A        Assert.assertTrue(filters.contains(BasicRollupsOutputSerializer.MetricStat.MIN));%0A        Assert.assertTrue(filters.contains(BasicRollupsOutputSerializer.MetricStat.MAX));%0A    %7D%0A%7D%0A

Add test cases for parsing filters in plot requests