Skip to content

TestableMock在使用时仍然会加载环境配置,如果有未mock的方法,在运行测试类时会真实执行 #82

@GodwinHub

Description

@GodwinHub

如果存在未mock的方法,会在测试类执行时候真实的执行代码逻辑,有什么方法可以避免这种情况吗?在powermock中是依靠@PrepareForTest注解和@mock等注解配合实现的,但是在TestableMock中注解好像不适用

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions