swangkkb / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Enhancement - mappers for validating HAL responses #358

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the hal+json type
2. Try to write some body validation

What is the expected output? What do you see instead?

Even thoughyou can achieve it with the JsonPath support, the body validation 
isn't that legible when you use HAL as a response type. It would be great to 
have some HAL specific mappers so you could validate that a body hasLink or 
hasSelfLink or hasProperty etc. We've searched the net and we can't find any 
HAL specific Hamcrest mappers, so it looks like we'd have to roll our own. I 
think they'd be a great part of this project, and super useful for people that 
used HAL as a media type and wanted to test in a fluent way.

What version of the product are you using? On what operating system?
The latest and greates/OSX

Please provide any additional information below.

Original issue reported on code.google.com by mikeycmc...@gmail.com on 3 Oct 2014 at 3:35

GoogleCodeExporter commented 9 years ago
I agree, that would be great as a module to REST Assured. You're very welcome 
to help out with this if you like.

Original comment by johan.ha...@gmail.com on 6 Oct 2014 at 6:37

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 6 Oct 2014 at 6:38