jparams / to-string-verifier

To String Verifier provides an easy and convenient way to test the toString method on your class.
MIT License
32 stars 6 forks source link

Config option to finetune delimiters between attributes/objects #41

Open vghero opened 4 years ago

vghero commented 4 years ago

We're using a custom ToStringBuilder that adds some tweaking to the output/indention. If the attribute is a complex object, it adds 3 spaces after the newline - so it's better readable. to-string-verifier fails on this since it does not expect those 3 spaces to be there. It would be great, if this check for spaces could be exposed to the outside world, so someone could tweak it. Maybe one could also think about, to offer an option, to ignore such whitespaces completely and just focus on the textual parts like attributes, commas etc. WDYT?