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 ""; }
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 ""; }
void rbGML_actionPerformed(ActionEvent e) { writeView( convertToGML(test.getGeometry(0)), convertToGML(test.getGeometry(1)), convertToGML(test.getResult())); }
void rbWKTFormatted_actionPerformed(ActionEvent e) { writeView( convertToWKT(test.getGeometry(0), true), convertToWKT(test.getGeometry(1), true), convertToWKT(test.getResult(), true)); }
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()); }