Java+SpringBoot单元测试,利用反射测试私有方法
#在sringBoot方法中测试私有方法需要利用反射
import com.sun.tools.javah.Gen;
import java.io.BufferedOutputStream;
import java.lang.reflect.Method;
class Game {
Game(int i) {
System.out.print("Game construc...
原创
2019-03-25 15:26:53 ·
2119 阅读 ·
1 评论