Now that we have the lambda expression, it should be able to have a Java module testing library that offers syntax similar to (say) RSpec syntax. I imagine something like:
describe("some behavior", () -> { beforeEach(() -> { // do some initialization... }); describe("sub behavior 1", () -> { // some assertions ... }); describe("sub behavior 2", () -> { // some assertions .... }); });
Is there such a library there?
source share