I want to set an expected exception for a JUnit 4 test using Scala. I am current doing something similar to the following:
@Test(expected=classOf[NullPointerException])
def someTest() = {
// Some test code
}
But I get the following compiler error:
error: wrong number of arguments for constructor Test: ()org.junit.Test