Class FailedTestOutputBeanImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.buildLog.FailedTestOutputBeanImpl
-
- All Implemented Interfaces:
FailedTestOutputBean
public final class FailedTestOutputBeanImpl extends Object implements FailedTestOutputBean
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FailedTestOutputBeancreate(TestOutput testOutput)StringgetCombinedOutput()Presents test failure info in human readable way.TestComparisonFailureBeangetComparisonFailureInfo()Returns info if the test has failed because of comparison problem is reported by callingDefaultMessagesInfo.createComparisonFailed(java.lang.String, java.lang.Throwable, java.lang.String, java.lang.String)methods or sending equal build message.StringgetErrOutput()All text that was printed to stderr by the testStringgetStacktrace()Test failure exception presented as stringStringgetStacktraceMessage()Returns exception messageStringgetStdOutput()All text that was printed to stdout by the test
-
-
-
Method Detail
-
create
@NotNull public static FailedTestOutputBean create(@NotNull TestOutput testOutput)
-
getComparisonFailureInfo
@Nullable public TestComparisonFailureBean getComparisonFailureInfo()
Description copied from interface:FailedTestOutputBeanReturns info if the test has failed because of comparison problem is reported by callingDefaultMessagesInfo.createComparisonFailed(java.lang.String, java.lang.Throwable, java.lang.String, java.lang.String)methods or sending equal build message.- Specified by:
getComparisonFailureInfoin interfaceFailedTestOutputBean- Returns:
- bean with actual and expected strings or null if there was no comparison failure
-
getStdOutput
public String getStdOutput()
Description copied from interface:FailedTestOutputBeanAll text that was printed to stdout by the test- Specified by:
getStdOutputin interfaceFailedTestOutputBean- Returns:
- test stdout
-
getErrOutput
public String getErrOutput()
Description copied from interface:FailedTestOutputBeanAll text that was printed to stderr by the test- Specified by:
getErrOutputin interfaceFailedTestOutputBean- Returns:
- test stderr
-
getStacktrace
public String getStacktrace()
Description copied from interface:FailedTestOutputBeanTest failure exception presented as string- Specified by:
getStacktracein interfaceFailedTestOutputBean- Returns:
- exception string
-
getStacktraceMessage
public String getStacktraceMessage()
Description copied from interface:FailedTestOutputBeanReturns exception message- Specified by:
getStacktraceMessagein interfaceFailedTestOutputBean- Returns:
- exception message
-
getCombinedOutput
public String getCombinedOutput()
Description copied from interface:FailedTestOutputBeanPresents test failure info in human readable way. Merges stacktrace, std out, std error- Specified by:
getCombinedOutputin interfaceFailedTestOutputBean- Returns:
- stacktrace, std out, std error combined to a single string with headers and new lines.
-
-