Package org.arquillian.recorder.reporter

Examples of org.arquillian.recorder.reporter.Exporter


        sce2.setPhase(When.BEFORE);

        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce);
        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce2);

        Exporter exporter = new XMLExporter(JAXBContextFactory.initContext(Report.class));
        exporter.setConfiguration(configuration);

        exporter.export(reporter.getReport());
    }
View Full Code Here


        reporter.getLastTestMethodReport().getPropertyEntries().add(sce);
        reporter.getLastTestMethodReport().getPropertyEntries().add(sce2);

        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

        Exporter exporter = new AsciiDocExporter(byteArrayOutputStream);
        exporter.setConfiguration(configuration);

        exporter.export(reporter.getReport());

        // Not the best way to test it but for now it is enough
        String content = new String(byteArrayOutputStream.toByteArray()).trim();

        assertThat(content, containsString("Arquillian"));
View Full Code Here

        reporter.getLastTestMethodReport().getPropertyEntries().add(sce);
        reporter.getLastTestMethodReport().getPropertyEntries().add(sce2);

        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

        Exporter exporter = new AsciiDocExporter(byteArrayOutputStream);
        exporter.setConfiguration(configuration);

        exporter.export(reporter.getReport());

        // Not the best way to test it but for now it is enough
        String content = new String(byteArrayOutputStream.toByteArray()).trim();

        assertThat(content, containsString("Arquillian"));
View Full Code Here

        sce2.setPhase(When.BEFORE);

        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce);
        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce2);

        Exporter exporter = new XMLExporter(JAXBContextFactory.initContext(Report.class));
        exporter.setConfiguration(configuration);

        exporter.export(reporter.getReport());
    }
View Full Code Here

        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce);
        reporter.getReporterCursor().getCursor().getPropertyEntries().add(sce2);

        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

        Exporter exporter = new AsciiDocExporter(byteArrayOutputStream);
        exporter.setConfiguration(configuration);

        exporter.export(reporter.getReport());

        // Not the best way to test it but for now it is enough
        String content = new String(byteArrayOutputStream.toByteArray()).trim();

        assertThat(content, containsString("Arquillian"));
View Full Code Here

    }

    @Override
    public Exporter get(Class<? extends ReportType> reportType) {

        Exporter found = null;

        for (Exporter exporter : exporters) {
            if (exporter.getReportType() == reportType) {
                found = exporter;
                break;
View Full Code Here

TOP

Related Classes of org.arquillian.recorder.reporter.Exporter

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.