bahmanm to General Programming DiscussionEnglish · edit-25 hours agoAssertJ's custom assertionsimagemessage-square2fedilinkarrow-up12arrow-down10file-textcross-posted to: java@programming.dev
arrow-up12arrow-down1imageAssertJ's custom assertionsbahmanm to General Programming DiscussionEnglish · edit-25 hours agomessage-square2fedilinkfile-textcross-posted to: java@programming.dev
If there was one reason I liked coding in Java, it’d be AssertJ and its brilliant extensibility. The image is an example of it from bjForth The ability to create custom assertions makes the test code concise and read naturally.
minus-squarejan75linkfedilinkarrow-up1·3 hours agoYeah, we use it as well and it can do some nice assertions while still remaining at least somewhat readable.
Yeah, we use it as well and it can do some nice assertions while still remaining at least somewhat readable.