Version 0.5 (Beta)
Pre-release
Pre-release
Upgrading to this version from 0.4 might break your build. Please read through the notes below for more details.
In this version:
- #64: We have removed an ambiguous method:
StatusCodeAssertions.expecting()
. This method accepted either an array ofint
or an array ofInteger
. When these are passed as literals, compilation fails because the compiler could not determine which method to call. Since this is a public API change, you need to check anywhere you were using this method and ensure that your code compiles. - #59:
JsonSchemaAssertions
will now also assert that the response received from the server hasContent-type
header ofapplication/json
. If you want to change the expected content type, use theoverrideContentType()
method. - #24: New request class:
FileRequest
. This class lets you upload a file's content as the HTTP entity body. Think of it as the file version ofGeneralRequest
. Bastion will even try to guess theContent-type
header to send by looking at the filename.- Known Issue: On MacOS systems, a JDK bug prevents Bastion from guessing the MIME type of given files. You will need to use the
setContentType()
method if you need to set the content type.
- Known Issue: On MacOS systems, a JDK bug prevents Bastion from guessing the MIME type of given files. You will need to use the