edu.udo.cs.yale.example.test
Class DataRowTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.udo.cs.yale.test.TestCase
              extended by edu.udo.cs.yale.example.test.DataRowTest
All Implemented Interfaces:
junit.framework.Test

public class DataRowTest
extends TestCase

Tests creation and parsing of sparse and dense data rows, including missing values.

Version:
$Id: DataRowTest.java,v 1.11 2006/08/03 14:39:34 ingomierswa Exp $
Author:
Simon Fischer

Field Summary
private  Attribute[] attributes
           
private  double[] expected
           
 
Constructor Summary
DataRowTest()
           
 
Method Summary
private  void assertDataRow(java.lang.String message, DataRow dataRow, double[] expected)
           
private  void objectTest(java.lang.String message, DataRowFactory factory)
           
 void setUp()
           
private  void stringTest(java.lang.String message, DataRowFactory factory)
           
 void tearDown()
           
 void testDoubleArrayObjects()
           
 void testDoubleArrayStrings()
           
 void testSparseMapObjects()
           
 void testSparseMapStrings()
           
 
Methods inherited from class edu.udo.cs.yale.test.TestCase
assertEqualsNaN
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
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, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributes

private Attribute[] attributes

expected

private double[] expected
Constructor Detail

DataRowTest

public DataRowTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class TestCase
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

assertDataRow

private void assertDataRow(java.lang.String message,
                           DataRow dataRow,
                           double[] expected)

objectTest

private void objectTest(java.lang.String message,
                        DataRowFactory factory)

stringTest

private void stringTest(java.lang.String message,
                        DataRowFactory factory)

testDoubleArrayStrings

public void testDoubleArrayStrings()

testDoubleArrayObjects

public void testDoubleArrayObjects()

testSparseMapStrings

public void testSparseMapStrings()

testSparseMapObjects

public void testSparseMapObjects()


Copyright © 2001-2006