Ejemplo n.º 1
0
 public void populateList() {
   listModel.clear();
   for (Iterator i = JTSTestBuilderFrame.instance().getModel().getTestCases().iterator();
       i.hasNext(); ) {
     Testable testCase = (Testable) i.next();
     listModel.addElement(testCase);
   }
 }
Ejemplo n.º 2
0
 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>";
 }