Package org.apache.chemistry.opencmis.tck

Examples of org.apache.chemistry.opencmis.tck.CmisTestReport


            reportButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
                    try {
                        // create report
                        File tempReportFile = null;
                        CmisTestReport report = null;

                        switch (reportType.getSelectedIndex()) {
                        case 0:
                            tempReportFile = File.createTempFile("cmistck", ".html");
                            report = new HtmlReport();
                            break;
                        case 1:
                            tempReportFile = File.createTempFile("cmistck", ".txt");
                            report = new TextReport();
                            break;
                        case 2:
                            tempReportFile = File.createTempFile("cmistck", ".xml");
                            report = new XmlReport();
                            break;
                        }

                        tempReportFile.deleteOnExit();
                        report.createReport(parameters, groups, tempReportFile);

                        // show report
                        Desktop desktop = Desktop.getDesktop();
                        if (!desktop.isSupported(Desktop.Action.OPEN)) {
                            JOptionPane.showMessageDialog(owner, "Report: " + tempReportFile.getAbsolutePath(),
View Full Code Here


                runner.loadDefaultTckGroups();
            } else {
                runner.loadGroups(groups);
            }

            CmisTestReport report = null;

            if (format == null) {
                report = new TextReport();
                if (output == null) {
                    output = new File(DEFAULT_REPORT_NAME + ".txt");
                }
            } else {
                format = format.trim().toLowerCase();
                if (REPORT_TEXT.equals(format)) {
                    report = new TextReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".txt");
                    }
                } else if (REPORT_XML.equals(format)) {
                    report = new XmlReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".xml");
                    }
                } else if (REPORT_HTML.equals(format)) {
                    report = new HtmlReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".html");
                    }
                } else {
                    throw new Exception("Unknown format!");
                }
            }

            runner.run(new AntProgressMonitor());

            log("CMIS TCK Report: " + output.getAbsolutePath());
            report.createReport(runner.getParameters(), runner.getGroups(), output);
        } catch (Exception e) {
            throw new BuildException("OpenCMIS TCK run failed!", e);
        }
    }
View Full Code Here

                runner.loadDefaultTckGroups();
            } else {
                runner.loadGroups(groups);
            }

            CmisTestReport report = null;

            if (format == null) {
                report = new TextReport();
                if (output == null) {
                    output = new File(DEFAULT_REPORT_NAME + ".txt");
                }
            } else {
                format = format.trim().toLowerCase();
                if (REPORT_TEXT.equals(format)) {
                    report = new TextReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".txt");
                    }
                } else if (REPORT_XML.equals(format)) {
                    report = new XmlReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".xml");
                    }
                } else if (REPORT_HTML.equals(format)) {
                    report = new HtmlReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".html");
                    }
                } else {
                    throw new Exception("Unknown format!");
                }
            }

            runner.run(new AntProgressMonitor());

            log("CMIS TCK Report: " + output.getAbsolutePath());
            report.createReport(runner.getParameters(), runner.getGroups(), output);
        } catch (Exception e) {
            throw new BuildException("OpenCMIS TCK run failed!", e);
        }
    }
View Full Code Here

            loadGroups(new File(args[1]));
        }

        run(new ConsoleProgressMonitor());

        CmisTestReport report = new TextReport();
        report.createReport(getParameters(), getGroups(), new PrintWriter(System.out));
    }
View Full Code Here

                runner.loadDefaultTckGroups();
            } else {
                runner.loadGroups(groups);
            }

            CmisTestReport report = null;

            if (format == null) {
                report = new TextReport();
                if (output == null) {
                    output = new File(DEFAULT_REPORT_NAME + ".txt");
                }
            } else {
                format = format.trim().toLowerCase();
                if (REPORT_TEXT.equals(format)) {
                    report = new TextReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".txt");
                    }
                } else if (REPORT_XML.equals(format)) {
                    report = new XmlReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".xml");
                    }
                } else if (REPORT_HTML.equals(format)) {
                    report = new HtmlReport();
                    if (output == null) {
                        output = new File(DEFAULT_REPORT_NAME + ".html");
                    }
                } else {
                    throw new Exception("Unknown format!");
                }
            }

            runner.run(new AntProgressMonitor());

            log("CMIS TCK Report: " + output.getAbsolutePath());
            report.createReport(runner.getParameters(), runner.getGroups(), output);
        } catch (Exception e) {
            throw new BuildException("OpenCMIS TCK run failed!", e);
        }
    }
View Full Code Here

            }

            runner.addGroup(group);
            runner.run(new JUnitProgressMonitor());

            CmisTestReport report = new TextReport();
            report.createReport(runner.getParameters(), runner.getGroups(), new PrintWriter(System.out));

            checkForFailures(runner);
        } catch (Exception e) {
            Assert.fail(e.getMessage());
        }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.tck.CmisTestReport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.