org.apache.maven.surefire.failsafe.model.FailsafeSummary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-failsafe-plugin Show documentation
Show all versions of maven-failsafe-plugin Show documentation
Maven Failsafe MOJO in maven-failsafe-plugin.
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.4.1 on 2010-12-23 00:29:26,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.surefire.failsafe.model;
/**
*
* Describes the results of executing tests
* .
*
* @version $Revision$ $Date$
*/
public class FailsafeSummary
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The surefire result code.
*/
private int result = 0;
/**
* The exception that caused surefire to bomb out.
*/
private String exception;
/**
* Field modelEncoding.
*/
private String modelEncoding = "UTF-8";
//-----------/
//- Methods -/
//-----------/
/**
* Get the exception that caused surefire to bomb out.
*
* @return String
*/
public String getException()
{
return this.exception;
} //-- String getException()
/**
* Get the modelEncoding field.
*
* @return String
*/
public String getModelEncoding()
{
return this.modelEncoding;
} //-- String getModelEncoding()
/**
* Get the surefire result code.
*
* @return int
*/
public int getResult()
{
return this.result;
} //-- int getResult()
/**
* Set the exception that caused surefire to bomb out.
*
* @param exception
*/
public void setException( String exception )
{
this.exception = exception;
} //-- void setException( String )
/**
* Set the modelEncoding field.
*
* @param modelEncoding
*/
public void setModelEncoding( String modelEncoding )
{
this.modelEncoding = modelEncoding;
} //-- void setModelEncoding( String )
/**
* Set the surefire result code.
*
* @param result
*/
public void setResult( int result )
{
this.result = result;
} //-- void setResult( int )
/**
* Merges the summary result with this summary result.
*
* @param summary The summary to merge.
* @since 2.6
*/
public void merge( FailsafeSummary summary )
{
switch ( this.result )
{
case org.apache.maven.surefire.booter.ProviderConfiguration.TESTS_SUCCEEDED_EXIT_CODE:
this.result = summary.result;
break;
case org.apache.maven.surefire.booter.ProviderConfiguration.NO_TESTS_EXIT_CODE:
switch ( summary.result )
{
case org.apache.maven.surefire.booter.ProviderConfiguration.TESTS_SUCCEEDED_EXIT_CODE:
break;
case org.apache.maven.surefire.booter.ProviderConfiguration.NO_TESTS_EXIT_CODE:
break;
case org.apache.maven.surefire.booter.ProviderConfiguration.TESTS_FAILED_EXIT_CODE:
this.result = summary.result;
break;
default:
this.result = summary.result;
break;
}
break;
case org.apache.maven.surefire.booter.ProviderConfiguration.TESTS_FAILED_EXIT_CODE:
switch ( summary.result )
{
case org.apache.maven.surefire.booter.ProviderConfiguration.TESTS_SUCCEEDED_EXIT_CODE:
break;
case org.apache.maven.surefire.booter.ProviderConfiguration.NO_TESTS_EXIT_CODE:
break;
case org.apache.maven.surefire.booter.ProviderConfiguration.TESTS_FAILED_EXIT_CODE:
break;
default:
this.result = summary.result;
break;
}
break;
default:
break;
}
if ( this.exception == null )
{
this.exception = summary.exception;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy