net.sourceforge.openforecast.tests
Class DelimitedTextOutputterTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- net.sourceforge.openforecast.tests.OpenForecastTestCase
-
- net.sourceforge.openforecast.tests.DelimitedTextOutputterTest
-
- All Implemented Interfaces:
- junit.framework.Test
public class DelimitedTextOutputterTest extends OpenForecastTestCase
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.
-
-
Constructor Summary
Constructors Constructor and Description DelimitedTextOutputterTest(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetUp()Creates a dummy data setto be written by all test cases.voidtearDown()Resets the data set created during setUp.voidtestAltCSVOutput()Tests the correct output of a DataSet to a CSV file, using a modified delimiter String - a comma surrounded by various whitespace.voidtestCSVOutput()Tests the correct output of a DataSet to a CSV file.-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
-
-
-
Constructor Detail
-
DelimitedTextOutputterTest
public DelimitedTextOutputterTest(java.lang.String name)
-
-
Method Detail
-
setUp
public void setUp()
Creates a dummy data setto be written by all test cases.- Overrides:
setUpin classjunit.framework.TestCase
-
tearDown
public void tearDown()
Resets the data set created during setUp.- Overrides:
tearDownin classjunit.framework.TestCase
-
testCSVOutput
public void testCSVOutput() throws java.io.FileNotFoundException, java.io.IOExceptionTests the correct output of a DataSet to a CSV file. Assumes that the CSVBuilder input is correct and valid.- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
testAltCSVOutput
public void testAltCSVOutput() throws java.io.FileNotFoundException, java.io.IOExceptionTests the correct output of a DataSet to a CSV file, using a modified delimiter String - a comma surrounded by various whitespace. Assumes that the CSVBuilder input is correct and valid.- Throws:
java.io.FileNotFoundExceptionjava.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG