public interface StubFinder extends StubTrigger
Modifier and Type | Method and Description |
---|---|
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() |
labels, trigger, trigger, trigger
URL findStubUrl(String groupId, String artifactId) throws StubNotFoundException
groupId
- - might be null. In that case a search only via artifactId takes
placeartifactId
- - artifact id of the stubStubNotFoundException
- in case of not finding a stubURL 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 artifactStubNotFoundException
- in case of not finding a stubRunningStubs findAllRunningStubs()
Map<StubConfiguration,Collection<org.springframework.cloud.contract.spec.Contract>> getContracts()
Copyright © 2016–2021 Spring. All rights reserved.