Package rife.bld.extension.testing
Class CapturedOutput.OutputEntry
java.lang.Object
rife.bld.extension.testing.CapturedOutput.OutputEntry
- Enclosing class:
- CapturedOutput
Represents a single output entry with type, content, and timestamp.
This class encapsulates a single piece of output that was written to either stdout or stderr during test execution. Each entry includes the output type (STDOUT or STDERR), the actual content, and the timestamp when it occurred.
Instances of this class are immutable and are created automatically by the capture mechanism when output occurs.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the content of this output entry.Returns the timestamp of this output entry.getType()
Returns the type of this output entry.boolean
isStderr()
Determines if this output entry is from stderr.boolean
isStdout()
Determines if this output entry is from stdout.toString()
Provides a string representation of this output entry for debugging purposes.
-
Method Details
-
getContent
Returns the content of this output entry.- Returns:
- the content that was written
-
getTimestamp
Returns the timestamp of this output entry.- Returns:
- the instant when the output occurred
-
getType
Returns the type of this output entry.- Returns:
- the output type (STDOUT or STDERR)
-
isStderr
public boolean isStderr()Determines if this output entry is from stderr.- Returns:
true
if this entry is from stderr,false
otherwise
-
isStdout
public boolean isStdout()Determines if this output entry is from stdout.- Returns:
true
if this entry is from stdout,false
otherwise
-
toString
Provides a string representation of this output entry for debugging purposes.
-