Class StubMapperProperties
java.lang.Object
org.springframework.cloud.contract.stubrunner.spring.cloud.StubMapperProperties
Maps Ivy based ids to service Ids. You might want to name the service you're calling in
another way than artifact id. If that's the case then this class should be used to
change do the proper mapping.
Just provide in your properties file for example:
stubrunner.idsToServiceIds: fraudDetectionServer:
someNameThatShouldMapFraudDetectionServer
- Since:
- 1.0.0
- Author:
- Marcin Grzejszczak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromIvyNotationToId(String ivyNotation) fromServiceIdToIvyNotation(String serviceId) voidsetIdsToServiceIds(Map<String, String> idsToServiceIds)
-
Constructor Details
-
StubMapperProperties
public StubMapperProperties()
-
-
Method Details
-
getIdsToServiceIds
-
setIdsToServiceIds
-
fromIvyNotationToId
-
fromServiceIdToIvyNotation
-