The Meta-Environment API

nl.cwi.sen1.visplugin.table.model
Class SortableTableModelExporterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by nl.cwi.sen1.visplugin.table.model.SortableTableModelExporterTest
All Implemented Interfaces:
junit.framework.Test

public class SortableTableModelExporterTest
extends junit.framework.TestCase

Tests the SortableTableModelExporter class.

Author:
Anton Gerdessen, Arend van Beelen

Field Summary
private  SortableTableModelExporter m_exporter
           
private  nl.cwi.sen1.relationstores.Factory m_factory
           
private  SortableTableModel m_model
           
private static java.lang.String m_testFilename
           
private  nl.cwi.sen1.relationstores.types.RTuple m_testRTuple
           
private  nl.cwi.sen1.relationstores.types.RTuple m_testRTupleSelection
           
 
Constructor Summary
SortableTableModelExporterTest()
           
 
Method Summary
private  java.lang.String readFile(java.lang.String filename)
          Reads an entire file and returns the contents as a string.
 void setUp()
          Set-up code for the unit tests.
 void testExportToRStoreEntireTable()
          Tests the exportToRStore() function while exporting the entire table.
 void testExportToRStoreTableSelection()
          Tests the exportToRStore() function while exporting only the first and third row.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

m_testFilename

private static java.lang.String m_testFilename

m_factory

private nl.cwi.sen1.relationstores.Factory m_factory

m_testRTuple

private nl.cwi.sen1.relationstores.types.RTuple m_testRTuple

m_testRTupleSelection

private nl.cwi.sen1.relationstores.types.RTuple m_testRTupleSelection

m_model

private SortableTableModel m_model

m_exporter

private SortableTableModelExporter m_exporter
Constructor Detail

SortableTableModelExporterTest

public SortableTableModelExporterTest()
Method Detail

setUp

public void setUp()
Set-up code for the unit tests.

Overrides:
setUp in class junit.framework.TestCase

testExportToRStoreEntireTable

public void testExportToRStoreEntireTable()
Tests the exportToRStore() function while exporting the entire table.


testExportToRStoreTableSelection

public void testExportToRStoreTableSelection()
Tests the exportToRStore() function while exporting only the first and third row.


readFile

private java.lang.String readFile(java.lang.String filename)
Reads an entire file and returns the contents as a string.

Parameters:
filename - Filename of the file to read.
Returns:
A string containing the file contents.

The Meta-Environment API