We're starting to use Scala Test to test our Java application, and I want to test the contents of a Java Collection. We came up with 2 possibilities:
JavaConversions.collectionAsScalaIterable(getJavaCollection()) must contain(allOf(item1, item2).inOrder)
or
Seq(getJavaCollection()).flatten mustEqual Seq(item1, item2)
Being a beginner to Scala, I'm wondering which way would be better (or is there a better way)?