Sometimes, when we get pull requests for jOOQ or our other libraries, people change the code in our unit tests to be more "idiomatic JUnit". In particular, this means that they tend to change this (admittedly not so pretty code): @Test public void testValueOfIntInvalid() { try { ubyte((UByte.MIN_VALUE) - 1); fail(); } catch (NumberFormatException e) … Continue reading Use JUnit’s expected exceptions sparingly
Tag: JUnit
JUnit’s Evolving Structure
This is an interesting read: http://edmundkirwan.com/general/junit.html It's an analysis about how JUnit gradually and organically evolved into a heavily entangled set of inter-dependent modules
