/*
 * Copyright 2013 Rackspace
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package com.rackspacecloud.blueflood.outputs.serializers;

import com.rackspacecloud.blueflood.rollup.Granularity;
import com.rackspacecloud.blueflood.types.Points;
import com.rackspacecloud.blueflood.types.Rollup;

public class FakeMetricDataGenerator {
    public static Points<Long> generateFakeFullResPoints() {
        Points<Long> points = Points.create(Granularity.FULL);

        long baseTime = 1234567L;
        for (int count = 0; count < 5; count++) {
            Points.Point<Long> point = new Points.Point<Long>(baseTime + (count*1000), (long) count);
            points.add(point);
        }

        return points;
    }

    public static Points<Rollup> generateFakeRollupPoints() {
        Points<Rollup> points = Points.create(Granularity.MIN_5);

        long baseTime = 1234567L;
        for (int count = 0; count < 5; count++) {
            final Rollup rollup = new Rollup();
            rollup.setCount(count * 100);
            rollup.getAverage().setLongValue(count);
            Points.Point<Rollup> point = new Points.Point<Rollup>(baseTime + (count*1000), rollup);
            points.add(point);
        }

        return points;
    }
}

@@ -1778,11 +1778,398 @@
 s;%0A    %7D
+%0A%0A    public static Points%3CString%3E generateFakeStringPoints() %7B%0A        Points%3CString%3E points = Points.create(Granularity.FULL);%0A        long startTime = 1234567L;%0A        for (int i =0; i %3C 5; i++) %7B%0A            long timeNow = startTime + i*1000;%0A            Points.Point%3CString%3E point = new Points.Point%3CString%3E(timeNow, String.valueOf(timeNow));%0A        %7D%0A        return points;%0A    %7D
 %0A%7D%0A

Add generateFakeStringPoints() method