Beispiel #1
0
 public static String getRunDescription(TestCaseList l) {
   for (Iterator i = l.getList().iterator(); i.hasNext(); ) {
     TestCaseEdit tce = (TestCaseEdit) i.next();
     if (tce.getTestable() instanceof TestRunnerTestCaseAdapter) {
       TestRunnerTestCaseAdapter a = (TestRunnerTestCaseAdapter) tce.getTestable();
       String description = a.getTestRunnerTestCase().getTestRun().getDescription();
       if (description != null && description.length() > 0) {
         return "  <desc>" + StringUtil.escapeHTML(description) + "</desc>" + StringUtil.newLine;
       }
       return "";
     }
   }
   return "";
 }
Beispiel #2
0
 public static String getRunWorkspace(TestCaseList l) {
   for (Iterator i = l.getList().iterator(); i.hasNext(); ) {
     TestCaseEdit tce = (TestCaseEdit) i.next();
     if (tce.getTestable() instanceof TestRunnerTestCaseAdapter) {
       TestRunnerTestCaseAdapter a = (TestRunnerTestCaseAdapter) tce.getTestable();
       File workspace = a.getTestRunnerTestCase().getTestRun().getWorkspace();
       if (workspace != null) {
         return "  <workspace file=\""
             + StringUtil.escapeHTML(workspace.toString())
             + "\"/>"
             + StringUtil.newLine;
       }
       return "";
     }
   }
   return "";
 }
Beispiel #3
0
 void rbGML_actionPerformed(ActionEvent e) {
   writeView(
       convertToGML(test.getGeometry(0)),
       convertToGML(test.getGeometry(1)),
       convertToGML(test.getResult()));
 }
Beispiel #4
0
 void rbWKTFormatted_actionPerformed(ActionEvent e) {
   writeView(
       convertToWKT(test.getGeometry(0), true),
       convertToWKT(test.getGeometry(1), true),
       convertToWKT(test.getResult(), true));
 }
Beispiel #5
0
 void rbWKT_actionPerformed(ActionEvent e) {
   writeView(
       test.getGeometry(0) == null ? null : test.getGeometry(0).toString(),
       test.getGeometry(1) == null ? null : test.getGeometry(1).toString(),
       test.getResult() == null ? null : test.getResult().toString());
 }