| Constructor and Description |
|---|
ReportTreeModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addReports(Map<OPPLTestCase,List<Report>> reports) |
void |
addTreeModelListener(TreeModelListener l) |
void |
clear()
clear report map
|
Object |
getChild(Object parent,
int index) |
int |
getChildCount(Object parent) |
int |
getIndexOfChild(Object parent,
Object child) |
Object |
getRoot() |
TreePath[] |
getUnsuccessfulTreePaths()
Retrieves all the paths leading to unsuccessful reports.
|
boolean |
isLeaf(Object node) |
boolean |
isSuccessful()
Determines whether all the OPPLTestCases in this model have run
successfully.
|
boolean |
isSuccessful(OPPLTestCase opplTestCase)
Determines whether the input OPPLTestCase in this model has run
successfully.
|
boolean |
isUnsuccessful(Report report) |
void |
removeTreeModelListener(TreeModelListener l) |
void |
valueForPathChanged(TreePath path,
Object newValue) |
public int getChildCount(Object parent)
getChildCount in interface TreeModelpublic void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpublic int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelpublic void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModelpublic void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModelpublic void clear()
public void addReports(Map<OPPLTestCase,List<Report>> reports)
reports - reportspublic boolean isSuccessful()
true if all the OPPLTestCase instances in this have
successful reports or there's not OPPLTestCase reports in this.public boolean isSuccessful(OPPLTestCase opplTestCase)
opplTestCase - The input OPPLTestCase. Cannot be null and must
be in those contained into this model.true if all the reports related to the input
OPPLTestCase are successful.NullPointerException - if the input OPPLTestCase is null.IllegalArgumentException - if the input OPPLTestCase is not contained into the reports
in this model.public boolean isUnsuccessful(Report report)
report - reportpublic TreePath[] getUnsuccessfulTreePaths()
Copyright © 2014 The University of Manchester. All Rights Reserved.