//
// OpenForecast - open source, general-purpose forecasting package.
// Copyright (C) 2002-2011 Steven R. Gould
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
package net.sourceforge.openforecast.tests;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import net.sourceforge.openforecast.DataPoint;
import net.sourceforge.openforecast.DataSet;
import net.sourceforge.openforecast.Observation;
import net.sourceforge.openforecast.input.CSVBuilder;
import net.sourceforge.openforecast.output.DelimitedTextOutputter;
/**
* Defines test cases that are designed to test the DelimitedTextOutputter
* class. For many of these tests we make the assumption that the CSVBuilder
* class is also correct.
*/
public class DelimitedTextOutputterTest extends OpenForecastTestCase
{
private DataSet expectedDataSet;
public DelimitedTextOutputterTest( String name )
{
super(name);
}
/**
* Creates a dummy data setto be written by all test cases.
*/
public void setUp()
{
// Constants used to determine size of test
int MAX_X1 = 10;
int MAX_X2 = 10;
// Set up array for expected results
expectedDataSet = new DataSet();
// Create test DataSet
int numberOfDataPoints = 0;
for ( int x1=0; x1
Ads help maintain this website.