Čaj – expect(yourTests).to.be(“simple”);

Today I release an initial version of Čaj, a Java library that allows you to formulate expectations about your code in your tests.

Expectations formulated with Čaj are straightforward to read and simple to understand. Here are a few examples:


expect(yourTests).to.be("simple");
expect(javasAge).to.be.within(15, 25);
expect(collection).to.include(aSpecificValue);
expect(java).to.have.a.property("age").which.is.at.least(20);

You can find out more on Čaj’s GitHub page.

More Articles & Posts