I was trying to compare to String Arrays in a JUnit test suite in Scala using assertArrayEquals. It works fine for basic types like Int or Boolean, however it issues the following error when applying it to String:
overloaded method value toString with alternatives: (x$1: Array[Object])String (x$1: Array[Double])String (x$1: Array[Float])String (x$1: Array[Boolean])String (x$1: Array[Byte])String (x$1: Array[Char])String (x$1: Array[Short])String (x$1: Array[Int])String (x$1: Array[Long])String cannot be applied to (Array[String])
This seems weird to me since using the same method in a Java environment works without a problem. Is there a way to circumvent this?