public interface StubFinder extends StubTrigger
| Modifier and Type | Method and Description |
|---|---|
RunningStubs |
findAllRunningStubs()
Returns all running stubs
|
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()
Returns the list of Contracts
|
labels, trigger, trigger, triggerURL findStubUrl(String groupId, String artifactId) throws StubNotFoundException
groupId - - might be null. In that case a search only via artifactId takes placeStubNotFoundExceptionURL findStubUrl(String ivyNotation) throws StubNotFoundException
[groupId]:artifactId:[version]:[classifier] tries to
find the matching URL of the running stub. You can also pass only artifactId.ivyNotation - - Ivy representation of the Maven artifactStubNotFoundExceptionRunningStubs findAllRunningStubs()
Map<StubConfiguration,Collection<org.springframework.cloud.contract.spec.Contract>> getContracts()
Copyright © 2016–2017 Spring. All rights reserved.