this post was submitted on 16 Nov 2024
1 points (100.0% liked)

General Programming Discussion

7814 readers
14 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 5 years ago
MODERATORS
 

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.

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 day ago

I’ve recently switched from a Java-exclusive team to a Python-exclusive one, and this is the one thing I truly miss: An actively-maintained library for clear, extensible, fluent assertions. Being back to the likes of assertEquals is fine and all, but not as powerful or concise.

[–] [email protected] 2 points 1 day ago

Yeah, we use it as well and it can do some nice assertions while still remaining at least somewhat readable.