I am Scala newbie
I have a java method like this below
public void myMethod (Collection<String> param) throws MyException {
// process param
}
I want to test this method using a Scala Junit test
@Test
def myMethodTest() {
try {
....myMethod(Seq("myString"))
} catch {
case e : MyException => throw new AssertionError ("Failed myMethod : " + e.getMessage)
}
}
But it is giving me a Type mismatch error. How can I fix this?