Class TestRunHookStarted

java.lang.Object
io.cucumber.messages.types.TestRunHookStarted

public final class TestRunHookStarted extends Object
Represents the TestRunHookStarted message in Cucumber's message protocol
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      Unique identifier for this hook execution
    • getTestRunStartedId

      public String getTestRunStartedId()
      Identifier for the test run that this hook execution belongs to
    • getHookId

      public String getHookId()
      Identifier for the hook that will be executed
    • getWorkerId

      public Optional<String> getWorkerId()
      An identifier for the worker process running this hook, if parallel workers are in use. The identifier will be unique per worker, but no particular format is defined - it could be an index, uuid, machine name etc - and as such should be assumed that it's not human readable.
    • getTimestamp

      public Timestamp getTimestamp()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object