In Java, the programmer can specify expected exceptions for JUnit test cases like this:
@Test(expected = ArithmeticException.class) public void omg() { int bl
Another version of syntaxis using kluent:
@Test fun `should throw ArithmeticException`() { invoking { val backHole = 1 / 0 } `should throw` ArithmeticException::class }