public void populateList() { listModel.clear(); for (Iterator i = JTSTestBuilderFrame.instance().getModel().getTestCases().iterator(); i.hasNext(); ) { Testable testCase = (Testable) i.next(); listModel.addElement(testCase); } }
private String testName(Testable testCase) { String name = testCase.getName(); if ((name == null || name.length() == 0) && testCase instanceof TestCaseEdit) { name = ((TestCaseEdit) testCase).getDescription(); } if (name == null || name.length() == 0) { name = ""; } int testSkey = 1 + JTSTestBuilderFrame.instance().getModel().getTestCases().indexOf(testCase); String nameFinal = "Test " + testSkey + " - " + testCaseSignatureHTML(testCase); if (name != "") nameFinal = nameFinal + " > " + name; return "<html>" + nameFinal + "<html>"; }