-
- All Implemented Interfaces:
-
au.com.dius.pact.provider.reporters.VerifierReporter
public final class SLF4JReporter extends BaseVerifierReporter
Pact verifier reporter that logs the results via SLF4J.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
ext
private IProviderVerifier
verifier
private File
reportFile
private String
name
private File
reportDir
private Boolean
displayFullDiff
-
Constructor Summary
Constructors Constructor Description SLF4JReporter(String name, File reportDir)
SLF4JReporter(String name, File reportDir, Boolean displayFullDiff)
-
Method Summary
-
-
Method Detail
-
getVerifier
IProviderVerifier getVerifier()
-
setVerifier
Unit setVerifier(IProviderVerifier verifier)
-
getReportFile
File getReportFile()
-
setReportFile
Unit setReportFile(File reportFile)
-
getReportDir
File getReportDir()
-
setReportDir
Unit setReportDir(File reportDir)
-
getDisplayFullDiff
final Boolean getDisplayFullDiff()
-
setDisplayFullDiff
final Unit setDisplayFullDiff(Boolean displayFullDiff)
-
includesMetadata
Unit includesMetadata()
-
metadataComparisonOk
Unit metadataComparisonOk()
-
metadataComparisonOk
Unit metadataComparisonOk(String key, Object value)
-
metadataComparisonFailed
Unit metadataComparisonFailed(String key, Object value, Object comparison)
-
initialise
Unit initialise(IProviderInfo provider)
-
finaliseReport
Unit finaliseReport()
-
reportVerificationForConsumer
Unit reportVerificationForConsumer(IConsumerInfo consumer, IProviderInfo provider, String tag)
-
verifyConsumerFromUrl
Unit verifyConsumerFromUrl(UrlPactSource pactUrl, IConsumerInfo consumer)
-
verifyConsumerFromFile
Unit verifyConsumerFromFile(PactSource pactFile, IConsumerInfo consumer)
-
pactLoadFailureForConsumer
Unit pactLoadFailureForConsumer(IConsumerInfo consumer, String message)
-
warnProviderHasNoConsumers
Unit warnProviderHasNoConsumers(IProviderInfo provider)
-
warnPactFileHasNoInteractions
Unit warnPactFileHasNoInteractions(Pact pact)
-
interactionDescription
Unit interactionDescription(Interaction interaction)
-
stateForInteraction
Unit stateForInteraction(String state, IProviderInfo provider, IConsumerInfo consumer, Boolean isSetup)
-
warnStateChangeIgnored
Unit warnStateChangeIgnored(String state, IProviderInfo provider, IConsumerInfo consumer)
-
stateChangeRequestFailedWithException
Unit stateChangeRequestFailedWithException(String state, Boolean isSetup, Exception e, Boolean printStackTrace)
-
stateChangeRequestFailed
Unit stateChangeRequestFailed(String state, IProviderInfo provider, Boolean isSetup, String httpStatus)
-
warnStateChangeIgnoredDueToInvalidUrl
Unit warnStateChangeIgnoredDueToInvalidUrl(String state, IProviderInfo provider, Boolean isSetup, Object stateChangeHandler)
-
requestFailed
Unit requestFailed(IProviderInfo provider, Interaction interaction, String interactionMessage, Exception e, Boolean printStackTrace)
-
returnsAResponseWhich
Unit returnsAResponseWhich()
-
statusComparisonOk
Unit statusComparisonOk(Integer status)
-
statusComparisonFailed
Unit statusComparisonFailed(Integer status, Object comparison)
-
includesHeaders
Unit includesHeaders()
-
headerComparisonOk
Unit headerComparisonOk(String key, List<String> value)
-
headerComparisonFailed
Unit headerComparisonFailed(String key, List<String> value, Object comparison)
-
bodyComparisonOk
Unit bodyComparisonOk()
-
bodyComparisonFailed
Unit bodyComparisonFailed(Object comparison)
-
errorHasNoAnnotatedMethodsFoundForInteraction
Unit errorHasNoAnnotatedMethodsFoundForInteraction(Interaction interaction)
-
verificationFailed
Unit verificationFailed(Interaction interaction, Exception e, Boolean printStackTrace)
-
generatesAMessageWhich
Unit generatesAMessageWhich()
-
displayFailures
Unit displayFailures(Map<String, Object> failures)
-
displayFailures
Unit displayFailures(List<VerificationResult.Failed> failures)
-
reportVerificationNoticesForConsumer
Unit reportVerificationNoticesForConsumer(IConsumerInfo consumer, IProviderInfo provider, List<VerificationNotice> notices)
-
warnPublishResultsSkippedBecauseFiltered
Unit warnPublishResultsSkippedBecauseFiltered()
-
warnPublishResultsSkippedBecauseDisabled
Unit warnPublishResultsSkippedBecauseDisabled(String envVar)
-
-
-
-