public class TableMapTest
extends junit.framework.TestCase
implements javax.swing.event.TableModelListener
Title: Test TableMap class
Description:
Copyright: Copyright (c) 2006-2014
Company:
Modifier and Type | Field and Description |
---|---|
private boolean |
changed
Track whether the model has changed
|
private java.lang.String[] |
colNames
Test column names
|
private java.lang.String[][] |
data
Test data
|
private TableMap |
map
The table map instance being tested
|
private javax.swing.table.TableModel |
model1
Test model 1
|
private javax.swing.table.TableModel |
model2
Test model 2
|
Constructor and Description |
---|
TableMapTest()
Setup the test case instance
|
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Set the test
|
void |
tableChanged(javax.swing.event.TableModelEvent e) |
void |
testGetColumnClass()
Test getting a column class
|
void |
testGetColumnCount()
Test getting the column count
|
void |
testGetColumnName()
Test getting a column name
|
void |
testGetModel()
Test getting the model
|
void |
testGetRowCount()
Test getting the row count
|
void |
testGetValueAt()
Test getting a value from the map
|
void |
testIsCellEditable()
Test determine if the cell is editable
|
void |
testRemoveModel()
Test removing the model
|
void |
testSetModel()
Test setting the model
|
void |
testSetValueAt()
Test setting a value in the map
|
void |
testTableChanged()
Test detecting that the table has changed
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
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
private TableMap map
private javax.swing.table.TableModel model1
private javax.swing.table.TableModel model2
private boolean changed
private java.lang.String[][] data
private java.lang.String[] colNames
public void setUp()
setUp
in class junit.framework.TestCase
public void testGetModel()
public void testSetModel()
public void testRemoveModel()
public void testGetValueAt()
public void testSetValueAt()
public void testGetRowCount()
public void testGetColumnCount()
public void testGetColumnName()
public void testGetColumnClass()
public void testIsCellEditable()
public void testTableChanged()
public void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged
in interface javax.swing.event.TableModelListener