Class CapturedOutput.OutputEntry

java.lang.Object
rife.bld.extension.testing.CapturedOutput.OutputEntry
Enclosing class:
CapturedOutput

public static class CapturedOutput.OutputEntry extends Object
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 Details

    • getContent

      public String getContent()
      Returns the content of this output entry.
      Returns:
      the content that was written
    • getTimestamp

      public Instant getTimestamp()
      Returns the timestamp of this output entry.
      Returns:
      the instant when the output occurred
    • getType

      public CapturedOutput.OutputType 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

      public String toString()
      Provides a string representation of this output entry for debugging purposes.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the output entry