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 FailedTestOutputBean
create(TestOutput testOutput)
String
getCombinedOutput()
Presents test failure info in human readable way.TestComparisonFailureBean
getComparisonFailureInfo()
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.String
getErrOutput()
All text that was printed to stderr by the testString
getStacktrace()
Test failure exception presented as stringString
getStacktraceMessage()
Returns exception messageString
getStdOutput()
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:FailedTestOutputBean
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.- Specified by:
getComparisonFailureInfo
in interfaceFailedTestOutputBean
- Returns:
- bean with actual and expected strings or null if there was no comparison failure
-
getStdOutput
public String getStdOutput()
Description copied from interface:FailedTestOutputBean
All text that was printed to stdout by the test- Specified by:
getStdOutput
in interfaceFailedTestOutputBean
- Returns:
- test stdout
-
getErrOutput
public String getErrOutput()
Description copied from interface:FailedTestOutputBean
All text that was printed to stderr by the test- Specified by:
getErrOutput
in interfaceFailedTestOutputBean
- Returns:
- test stderr
-
getStacktrace
public String getStacktrace()
Description copied from interface:FailedTestOutputBean
Test failure exception presented as string- Specified by:
getStacktrace
in interfaceFailedTestOutputBean
- Returns:
- exception string
-
getStacktraceMessage
public String getStacktraceMessage()
Description copied from interface:FailedTestOutputBean
Returns exception message- Specified by:
getStacktraceMessage
in interfaceFailedTestOutputBean
- Returns:
- exception message
-
getCombinedOutput
public String getCombinedOutput()
Description copied from interface:FailedTestOutputBean
Presents test failure info in human readable way. Merges stacktrace, std out, std error- Specified by:
getCombinedOutput
in interfaceFailedTestOutputBean
- Returns:
- stacktrace, std out, std error combined to a single string with headers and new lines.
-
-