Interface StubTrigger

All Known Subinterfaces:
StubFinder, StubRunning
All Known Implementing Classes:
BatchStubRunner, StubRunner, StubRunnerExtension, StubRunnerExtension.PortStubRunnerExtension, StubRunnerRule, StubRunnerRule.PortStubRunnerRule

public interface StubTrigger
Contract for triggering stub messages.
Author:
Marcin Grzejszczak
  • Method Summary

    Modifier and Type
    Method
    Description
    Feature related to messaging.
    boolean
    Triggers all possible events.
    boolean
    trigger(String labelName)
    Triggers an event by a given label.
    boolean
    trigger(String ivyNotation, String labelName)
    Triggers an event by a given label for a given groupid:artifactid notation.
  • Method Details

    • trigger

      boolean trigger(String ivyNotation, String labelName)
      Triggers an event by a given label for a given groupid:artifactid notation. You can use only artifactId too. Feature related to messaging.
      Parameters:
      ivyNotation - ivy notation of a stub
      labelName - name of the label to trigger
      Returns:
      true - if managed to run a trigger
    • trigger

      boolean trigger(String labelName)
      Triggers an event by a given label. Feature related to messaging.
      Parameters:
      labelName - name of the label to trigger
      Returns:
      true - if managed to run a trigger
    • trigger

      boolean trigger()
      Triggers all possible events. Feature related to messaging.
      Returns:
      true - if managed to run a trigger
    • labels

      Feature related to messaging.
      Returns:
      a mapping of ivy notation of a dependency to all the labels it has.