Package org.stubit.http
Class Stubbing.Builder
java.lang.Object
org.stubit.http.Stubbing.Builder
- Enclosing class:
- Stubbing
A fluent API builder for
Stubbing.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturns(StubbedResponse response) Sets the response and builds theStubbing.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
path
- Parameters:
path- the path that will be considered for theStubbing.- Returns:
- this
- See Also:
-
PathPredicate(String)
-
method
- Parameters:
method- the method to be consideredfurtherMethods- optional further methods to be considered- Returns:
- this
- See Also:
-
MethodPredicate(String, String...)
-
returns
Sets the response and builds theStubbing.- Parameters:
response- theStubbedResponseto be used for theStubbing- Returns:
- the build
Stubbing
-