Annotation Type TestRuleLimitSysouts.Limit

Enclosing class:
TestRuleLimitSysouts

@Documented @Inherited @Retention(RUNTIME) @Target(TYPE) public static @interface TestRuleLimitSysouts.Limit
An annotation specifying the limit of bytes per class.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
    The maximum number of bytes written to stdout or stderr.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Maximum number of bytes passed to actual stdout or stderr.
  • Element Details

    • bytes

      long bytes
      The maximum number of bytes written to stdout or stderr. If exceeded, a suite failure will be triggered.
    • hardLimit

      long hardLimit
      Maximum number of bytes passed to actual stdout or stderr. Any writes beyond this limit will be ignored (will actually cause an IOException on the underlying output, but this is silently ignored by PrintStreams).
      Default:
      2147483648L