I just found out today that java has built in assertions.
public void triggerAssert() {
int number = 100;
assert number != 100;
}
Though you need to specify some flags to VM for them to work, which I haven’t figured out yet
Would be really cool if anyone knows how to make this work in Libgdx.