Skip to content

JMockit mock dubbo 接口

@Autowired 后用

java
new Expectations(instance) {{
    // mock ...
}};

或者生成一个mock对象,注入进去。