Interface StubTrigger
-
- All Known Subinterfaces:
StubFinder,StubRunning
- All Known Implementing Classes:
BatchStubRunner,StubRunner,StubRunnerExtension,StubRunnerExtension.PortStubRunnerExtension,StubRunnerRule,StubRunnerRule.PortStubRunnerRule
public interface StubTriggerContract for triggering stub messages.- Author:
- Marcin Grzejszczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Collection<String>>labels()Feature related to messaging.booleantrigger()Triggers all possible events.booleantrigger(String labelName)Triggers an event by a given label.booleantrigger(String ivyNotation, String labelName)Triggers an event by a given label for a givengroupid:artifactidnotation.
-
-
-
Method Detail
-
trigger
boolean trigger(String ivyNotation, String labelName)
Triggers an event by a given label for a givengroupid:artifactidnotation. You can use onlyartifactIdtoo. Feature related to messaging.- Parameters:
ivyNotation- ivy notation of a stublabelName- 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
Map<String,Collection<String>> labels()
Feature related to messaging.- Returns:
- a mapping of ivy notation of a dependency to all the labels it has.
-
-