|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.apache.felix.ipojo.junit4osgi.command.ResultTableModel
public class ResultTableModel
Result Table Model. Store the results of executed tests.
Field Summary | |
---|---|
static String |
ERROR
Error String. |
static String |
FAILURE
Failure String. |
static String |
SUCCESS
Success String. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ResultTableModel()
|
Method Summary | |
---|---|
void |
addTest(junit.framework.Test t)
Adds a sucessfull test. |
void |
addTest(junit.framework.Test t,
junit.framework.AssertionFailedError e)
Adds a failing test. |
void |
addTest(junit.framework.Test t,
Throwable e)
Adds a test in error. |
void |
clear()
Clear the list. |
int |
getColumnCount()
|
String |
getColumnName(int column)
Gets column names. |
int |
getErrors()
Gets the number of errors. |
int |
getFailures()
Gets the number of failures. |
String |
getMessage(int row,
int column)
Gets the message. |
int |
getRowCount()
|
int |
getSucess()
Gets the number of success. |
int |
getTestCount()
|
Object |
getValueAt(int rowIndex,
int columnIndex)
Get the Object placed in the JTable. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SUCCESS
public static final String FAILURE
public static final String ERROR
Constructor Detail |
---|
public ResultTableModel()
Method Detail |
---|
public int getRowCount()
public int getColumnCount()
public void addTest(junit.framework.Test t, junit.framework.AssertionFailedError e)
t
- the teste
- the assertion errorpublic void addTest(junit.framework.Test t, Throwable e)
t
- the teste
- the thrown errorpublic void addTest(junit.framework.Test t)
t
- the testpublic int getTestCount()
public int getSucess()
public int getErrors()
public int getFailures()
public void clear()
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- the rowcolumnIndex
- the column
TableModel.getValueAt(int, int)
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column
AbstractTableModel.getColumnName(int)
public String getMessage(int row, int column)
row
- the rowcolumn
- the column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |