Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(Stubbing...) - Method in class org.stubit.http.HttpStub
- address() - Method in class org.stubit.http.HttpStub
B
- body() - Method in record class org.stubit.http.HttpRequest
-
Returns the value of the
body
record component. - body() - Method in record class org.stubit.http.StubbedResponse
-
Returns the value of the
body
record component. - body(String) - Method in class org.stubit.http.StubbedResponse.Builder
-
Sets the body for the response.
- Builder() - Constructor for class org.stubit.http.StubbedResponse.Builder
- Builder() - Constructor for class org.stubit.http.Stubbing.Builder
C
E
- equals(Object) - Method in record class org.stubit.http.HttpRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.stubit.http.StubbedResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.stubit.http.Stubbing
-
Indicates whether some other object is "equal to" this one.
H
- hashCode() - Method in record class org.stubit.http.HttpRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.stubit.http.StubbedResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.stubit.http.Stubbing
-
Returns a hash code value for this object.
- header(String, String...) - Method in class org.stubit.http.StubbedResponse.Builder
-
Adds a header that will be set in the response.
- headers() - Method in record class org.stubit.http.StubbedResponse
-
Returns the value of the
headers
record component. - HttpRequest - Record Class in org.stubit.http
-
Represents an HTTP request.
- HttpRequest(String, URI, String) - Constructor for record class org.stubit.http.HttpRequest
-
Creates an instance of a
HttpRequest
record class. - HttpStub - Class in org.stubit.http
-
A
HttpStub
wraps anHttpServer
that is started locally on a dynamic port to serve fixed stubbed responses (Stubbing
s). - HttpStub() - Constructor for class org.stubit.http.HttpStub
-
Creates and starts the HttpStub.
- HttpStubCreationException - Exception in org.stubit.http
-
Exception for startup failures.
- HttpStubCreationException(IOException) - Constructor for exception org.stubit.http.HttpStubCreationException
M
- method() - Method in record class org.stubit.http.HttpRequest
-
Returns the value of the
method
record component. - method(String, String...) - Method in class org.stubit.http.Stubbing.Builder
O
- org.stubit.http - package org.stubit.http
P
- path(String) - Method in class org.stubit.http.Stubbing.Builder
- predicate() - Method in record class org.stubit.http.Stubbing
-
Returns the value of the
predicate
record component.
R
- receivedRequests() - Method in class org.stubit.http.HttpStub
-
Returns all received requests.
- receivedRequests(Predicate<HttpRequest>) - Method in class org.stubit.http.HttpStub
-
Returns all received request that match the given predicate.
- reset() - Method in class org.stubit.http.HttpStub
-
Removes all
Stubbing
s. - response() - Static method in record class org.stubit.http.StubbedResponse
- response() - Method in record class org.stubit.http.Stubbing
-
Returns the value of the
response
record component. - returns(StubbedResponse) - Method in class org.stubit.http.Stubbing.Builder
-
Sets the response and builds the
Stubbing
.
S
- statusCode() - Method in record class org.stubit.http.StubbedResponse
-
Returns the value of the
statusCode
record component. - statusCode(int) - Method in class org.stubit.http.StubbedResponse.Builder
-
Sets the status code for the response and builds the
StubbedResponse
. - stub() - Static method in record class org.stubit.http.Stubbing
- StubbedResponse - Record Class in org.stubit.http
-
A
StubbedResponse
defines the response that will be returned by the stub. - StubbedResponse(int, String, Map<String, List<String>>) - Constructor for record class org.stubit.http.StubbedResponse
-
Creates an instance of a
StubbedResponse
record class. - StubbedResponse.Builder - Class in org.stubit.http
-
A fluent API builder for
StubbedResponse
. - Stubbing - Record Class in org.stubit.http
-
A
Stubbing
defines that all requests that match the givenStubbing.predicate
should return the givenStubbing.response()
- Stubbing(Predicate<HttpRequest>, StubbedResponse) - Constructor for record class org.stubit.http.Stubbing
-
Creates an instance of a
Stubbing
record class. - Stubbing.Builder - Class in org.stubit.http
-
A fluent API builder for
Stubbing
.
T
- toString() - Method in record class org.stubit.http.HttpRequest
-
Returns a string representation of this record class.
- toString() - Method in record class org.stubit.http.StubbedResponse
-
Returns a string representation of this record class.
- toString() - Method in record class org.stubit.http.Stubbing
-
Returns a string representation of this record class.
U
- uri() - Method in record class org.stubit.http.HttpRequest
-
Returns the value of the
uri
record component.
All Classes and Interfaces|All Packages|Serialized Form