I'm familiar with the necessity of Java unit tests making their @Rule properties public, however new to doing this in Scala. I understand that Scala classes have properties public by default, so expect this to be acceptable:
class MyTest {
@Rule
var failure: ExpectedException = ExpectedException.none()
}
What am I missing?
Aucun commentaire:
Enregistrer un commentaire