阅读背景:

单元测试抽象类的受保护方法

来源:互联网 

I'm trying to write a unit test to test a protected method in an abstract class. I've tried writing a test class that inherits from the abstract class, but when I instantiate the test class the base abstract class attempts to connect to an Oracle database and fails which doesn't allow me to test the protected method I'm interested in. The abstract class cannot be modified.I'm trying to write a unit test to test a prote




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: