bastion-dev / Bastion

Java test library for HTTP APIs
http://bastion.rocks
GNU General Public License v3.0
13 stars 8 forks source link

New Assertions type: FileResponseAssertions #25

Open KPull opened 8 years ago

KPull commented 8 years ago

Similarly to #24, we need to add a new type of assertions object, FileResponseAssertions, that will load the binary data from the given file or resource and compare it to the content body received from the server.

The FileResponseAssertions should try to guess what the Content-Type header should be depending on the file chosen (some files will even have a MIME type embedded within them).