The Meta-Environment API

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

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

public class SortableTableModelTest
extends junit.framework.TestCase

JUnit Testcase used to test the TableVisualizationWindow class.

Author:
Antoine Savelkoul

Field Summary
private  nl.cwi.sen1.relationstores.Factory m_factory
           
private  SortableTableModel m_model
           
private  nl.cwi.sen1.relationstores.types.RTuple m_testRTuple
           
 
Constructor Summary
SortableTableModelTest()
           
 
Method Summary
 void setUp()
          Set-up code for the tests.
 void testGetColumnCount()
          Tests the getColumnCount() method to see if it's initialized properly by setRTupleData().
 void testGetColumnName()
          Tests the getColumnName() method to see if it's initialized properly by setRTupleData().
 void testGetRElemForRow()
          Tests the getRElemForRow() method.
 void testGetRElemForRowWithSorting()
          Tests the getRElemForRow() method after sorting on second column.
 void testGetRTupleRType()
          Tests the getRTupleRType() method.
 void testGetRTupleVariable()
          Tests the getRTupleVariable() method.
 void testGetValueAt()
          Tests the getValueAt() method.
 
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_model

private SortableTableModel m_model

m_factory

private nl.cwi.sen1.relationstores.Factory m_factory

m_testRTuple

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

SortableTableModelTest

public SortableTableModelTest()
Method Detail

setUp

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

Overrides:
setUp in class junit.framework.TestCase

testGetColumnCount

public void testGetColumnCount()
Tests the getColumnCount() method to see if it's initialized properly by setRTupleData().


testGetColumnName

public void testGetColumnName()
Tests the getColumnName() method to see if it's initialized properly by setRTupleData().


testGetValueAt

public void testGetValueAt()
Tests the getValueAt() method.


testGetRTupleVariable

public void testGetRTupleVariable()
Tests the getRTupleVariable() method.


testGetRTupleRType

public void testGetRTupleRType()
Tests the getRTupleRType() method.


testGetRElemForRow

public void testGetRElemForRow()
Tests the getRElemForRow() method.


testGetRElemForRowWithSorting

public void testGetRElemForRowWithSorting()
Tests the getRElemForRow() method after sorting on second column.


The Meta-Environment API