标签:class frame depend artifact 测试 version dep 方法 使用
使用 spring 的 ReflectionTestUtils
ReflectionTestUtils.invokeMethod(object, method , args);
导入依赖:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>4.1.6.RELEASE</version>
<scope>test</scope>
</dependency>
标签:class frame depend artifact 测试 version dep 方法 使用
原文地址:https://www.cnblogs.com/xmsx/p/11610812.html