public class BatchStubRunner extends Object implements StubRunning
StubRunner instances.StubRunner| Constructor and Description |
|---|
BatchStubRunner(Iterable<StubRunner> stubRunners) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RunningStubs |
findAllRunningStubs() |
URL |
findStubUrl(String ivyNotation)
For the given Ivy notation
[groupId]:artifactId:[version]:[classifier]
tries to find the matching URL of the running stub. |
URL |
findStubUrl(String groupId,
String artifactId)
For the given groupId and artifactId tries to find the matching URL of the running
stub.
|
Map<StubConfiguration,Collection<org.springframework.cloud.contract.spec.Contract>> |
getContracts() |
Map<String,Collection<String>> |
labels()
Feature related to messaging.
|
RunningStubs |
runStubs() |
boolean |
trigger()
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. |
public BatchStubRunner(Iterable<StubRunner> stubRunners)
public RunningStubs runStubs()
runStubs in interface StubRunningRunningStubs. If the stubs were
already started then a cached version will be returned.public URL findStubUrl(String groupId, String artifactId)
StubFinderfindStubUrl in interface StubFindergroupId - - might be null. In that case a search only via artifactId takes
placeartifactId - - artifact id of the stubpublic URL findStubUrl(String ivyNotation)
StubFinder[groupId]:artifactId:[version]:[classifier]
tries to find the matching URL of the running stub. You can also pass only
artifactId.findStubUrl in interface StubFinderivyNotation - - Ivy representation of the Maven artifactpublic RunningStubs findAllRunningStubs()
findAllRunningStubs in interface StubFinderpublic Map<StubConfiguration,Collection<org.springframework.cloud.contract.spec.Contract>> getContracts()
getContracts in interface StubFinderpublic boolean trigger(String ivyNotation, String labelName)
StubTriggergroupid:artifactid notation.
You can use only artifactId too.
Feature related to messaging.trigger in interface StubTriggerivyNotation - ivy notation of a stublabelName - name of the label to triggerpublic boolean trigger(String labelName)
StubTriggertrigger in interface StubTriggerlabelName - name of the label to triggerpublic boolean trigger()
StubTriggertrigger in interface StubTriggerpublic Map<String,Collection<String>> labels()
StubTriggerlabels in interface StubTriggerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016–2021 Spring. All rights reserved.