I have a class
class Dog {
private val age: Int = 10
def makeSound(sound: String) = {println(sound)}
}
How can I access private member with scalatest? I know I can use PrivateMethod to access private methods but I do not know how to access private member. Thank you.
Aucun commentaire:
Enregistrer un commentaire