将每个测试实例与它要测试的类放在同一个包内,以获得对包成员和保护成员的访问权。
Put each test case in the same package as the class it's testing to gain access to package and protected members.
现在我实现了对所有与UI相关的组件的编程序访问(假设所有需要进行访问的类都在同一个包内)。
I've now enabled programmatic access to all of my UI-related components (assuming that all the classes that require access are in the same package).
现在我实现了对所有与UI相关的组件的编程序访问(假设所有需要进行访问的类都在同一个包内)。
I've now enabled programmatic access to all of my UI-related components (assuming that all the classes that require access are in the same package).
应用推荐