Class PactUrlLoader
-
- All Implemented Interfaces:
-
au.com.dius.pact.provider.junitsupport.loader.PactLoader
public class PactUrlLoader implements PactLoader
Implementation of PactLoader that downloads pacts from given urls
-
-
Field Summary
Fields Modifier and Type Field Description private UrlsSourcepactSourceprivate PactReaderpactReaderprivate ValueResolverresolverprivate final Array<String>urlsprivate final Authauthentication
-
Constructor Summary
Constructors Constructor Description PactUrlLoader(PactUrl pactUrl)PactUrlLoader(Array<String> urls, Auth authentication)
-
Method Summary
Modifier and Type Method Description final UrlsSourcegetPactSource()final UnitsetPactSource(UrlsSource pactSource)final PactReadergetPactReader()final UnitsetPactReader(PactReader pactReader)final ValueResolvergetResolver()final UnitsetResolver(ValueResolver resolver)final Array<String>getUrls()final AuthgetAuthentication()Stringdescription()Returns a description of this pact loader List<Pact>load(String providerName)Load pacts from appropriate source PactSourcegetPactSource()Returns the source object that the pacts where loaded from -
-
Method Detail
-
getPactSource
final UrlsSource getPactSource()
-
setPactSource
final Unit setPactSource(UrlsSource pactSource)
-
getPactReader
final PactReader getPactReader()
-
setPactReader
final Unit setPactReader(PactReader pactReader)
-
getResolver
final ValueResolver getResolver()
-
setResolver
final Unit setResolver(ValueResolver resolver)
-
getAuthentication
final Auth getAuthentication()
-
description
String description()
Returns a description of this pact loader
-
getPactSource
PactSource getPactSource()
Returns the source object that the pacts where loaded from
-
-
-
-