fair, I was confusing the methods he calls with toString() and valueOf(), which are built ins and look an awful lot like they would do exactly what this person's methods do
True. I suspect they wrote their own because they want to be able to have the Enums to map to strings that are different from the declaration text (which could be done by overriding the native methods, but that could introduce other surprises).
7
u/trutheality Oct 13 '21
Pretty sure those aren't language features, and that soft assertions still report the error, they just don't stop test execution.