public class AccurestRule extends java.lang.Object
JUnit class rule that allows you to download the provided stubs.
| Type | Name and description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base, org.junit.runner.Description description) |
AccurestRule |
downloadStub(java.lang.String groupId, java.lang.String artifactId, java.lang.String classifier)Group Id, artifact Id and classifier of a single stub to download |
AccurestRule |
downloadStub(java.lang.String groupId, java.lang.String artifactId)Group Id, artifact Id of a single stub to download. |
AccurestRule |
downloadStub(java.lang.String ivyNotation)Ivy notation of a single stub to download. |
AccurestRule |
downloadStubs(java.lang.String... ivyNotations)Stubs to download in Ivy notations |
AccurestRule |
downloadStubs(java.util.List<java.lang.String> ivyNotations)Stubs to download in Ivy notations |
io.codearte.accurest.stubrunner.RunningStubs |
findAllRunningStubs() |
java.net.URL |
findStubUrl(java.lang.String groupId, java.lang.String artifactId) |
java.net.URL |
findStubUrl(java.lang.String ivyNotation) |
AccurestRule |
maxPort(int maxPort)Max value of port for WireMock server |
AccurestRule |
minPort(int minPort)Min value of port for WireMock server |
AccurestRule |
options(io.codearte.accurest.stubrunner.StubRunnerOptions stubRunnerOptions)Override all options |
AccurestRule |
repoRoot(java.lang.String repoRoot)String URI of repository containing stubs |
AccurestRule |
workOffline(boolean workOffline)Should download stubs or use only the local repository |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Group Id, artifact Id and classifier of a single stub to download
Group Id, artifact Id of a single stub to download. Default classifier will be picked.
Ivy notation of a single stub to download.
Stubs to download in Ivy notations
Stubs to download in Ivy notations
Max value of port for WireMock server
Min value of port for WireMock server
Override all options
String URI of repository containing stubs
Should download stubs or use only the local repository