Package org.apache.maven.surefire.report

Examples of org.apache.maven.surefire.report.ReporterException


            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(reportFile), "UTF-8")));
            writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" + LS);
            Xpp3DomWriter.write(new PrettyPrintXMLWriter(writer), testSuite);
        }
        catch (UnsupportedEncodingException e) {
            throw new ReporterException("Unable to use UTF-8 encoding", e);
        }
        catch (FileNotFoundException e) {
            throw new ReporterException("Unable to create file: " + e.getMessage(), e);
        }
        finally {
            IOUtil.close(writer);
        }
    }
View Full Code Here


            return new OutputStreamWriter( fos, encoding );
        }
        catch ( IOException e )
        {
            throw new ReporterException( "When writing report", e );
        }
    }
View Full Code Here

            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(reportFile), "UTF-8")));
            writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>" + LS);
            Xpp3DomWriter.write(new PrettyPrintXMLWriter(writer), testSuite);
        }
        catch (UnsupportedEncodingException e) {
            throw new ReporterException("Unable to use UTF-8 encoding", e);
        }
        catch (FileNotFoundException e) {
            throw new ReporterException("Unable to create file: " + e.getMessage(), e);
        }
        finally {
            IOUtil.close(writer);
        }
    }
View Full Code Here

            return writer;
        }
        catch ( IOException e )
        {
            throw new ReporterException( "Unable to create file for report: " + e.getMessage(), e );
        }
    }
View Full Code Here

        {
            return new FileWriter( reportFile );
        }
        catch ( IOException e )
        {
            throw new ReporterException( "When writing report", e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.report.ReporterException

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.