As stated on the title we are seeing failures on the comparison of Lists of String objects, in our case, due to omission of double quotes. We tried to pass in a String formatter to add the double quotes but issue remains. We think this stems from this fix https://github.com/jparams/to-string-verifier/issues/24. Here is how to replicate it:
As stated on the title we are seeing failures on the comparison of Lists of String objects, in our case, due to omission of double quotes. We tried to pass in a String formatter to add the double quotes but issue remains. We think this stems from this fix https://github.com/jparams/to-string-verifier/issues/24. Here is how to replicate it:
@Test void testListOfStrings() { ToStringVerifier.forClass(HasListField.class) .withPreset(Presets.APACHE_TO_STRING_BUILDER_JSON_STYLE) .verify(); }
class HasListField{ private List strings;
}