public class RestResponseStatusLineAssertion extends FluentAssertion<RestResponse>
StatusLine
object.
Constructor and Description |
---|
RestResponseStatusLineAssertion(StatusLine statusLine,
RestResponse returns)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FluentIntegerAssertion<RestResponse> |
code()
Returns an assertion against the status code on the response status object.
|
FluentIntegerAssertion<RestResponse> |
major()
Returns an assertion against the protocol major version on the response status object.
|
FluentIntegerAssertion<RestResponse> |
minor()
Returns an assertion against the protocol minor version on the response status object.
|
FluentStringAssertion<RestResponse> |
protocol()
Returns an assertion against the protocol on the response status object.
|
FluentStringAssertion<RestResponse> |
reason()
Returns an assertion against the reason phrase on the response status object.
|
msg, returns, stderr, stdout
assertNotNull, assertNotNull, className, error
public RestResponseStatusLineAssertion(StatusLine statusLine, RestResponse returns)
statusLine
- The response status line.returns
- The object to return after the test.public FluentIntegerAssertion<RestResponse> code()
public FluentStringAssertion<RestResponse> reason()
public FluentStringAssertion<RestResponse> protocol()
public FluentIntegerAssertion<RestResponse> major()
public FluentIntegerAssertion<RestResponse> minor()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.