There's a library many of us use called Rest-Assured, that provides a slick framework for testing API endpoints from within your Java code. It's (probably) the primary Java-based library for that particular use case, but those of us that use IDEA for an IDE run into some interesting formatting issues.
Rest-Assured follows a "given-when-then" format to writing test cases.
But as someone who habitually autoformats my code (one of my favorite features in an IDE), similar code comes out a lot less pretty.
Messing around with formatter settings hasn't gotten me very far, and gratuitious use of formatter on/formatter off tags can slow us down by a fair bit.
Have any other IDEA users out there who use Rest-Assured found a good solution to this? The Rest-Assured community is stumped, and we'd love any help!
(Copy-pastable code below if you want to mess around)