I assume that the author means that instead
package my.package;
class TestableClass {
private String property;
}
You can change the visibility to
package my.package;
class TestableClass {
String property;
}
In the second implementation, you can access the property from a test in a package my.package, for example
package my.package;
class TestableClassTest {
}
- , protected.