Skip to content

Version 0.5 (Beta)

Pre-release
Pre-release
Compare
Choose a tag to compare
@KPull KPull released this 03 Jan 18:03
· 84 commits to master since this 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 of int or an array of Integer. 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 has Content-type header of application/json. If you want to change the expected content type, use the overrideContentType() 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 of GeneralRequest. Bastion will even try to guess the Content-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.