Springboot单元测试(MockBean||SpyBean)
本来要写springboot集成netty实现的,但是想起来单元测试没总结,那就趁此机会总结一下,不用文字了,直接用代码去实现: 创建一个放方法的类MethodTest.java:(命名不严谨,能看懂就行了)package com.mtk.netty.test;import org.springframework.stereotype.Component;@Componentp...
原创
2017-11-08 21:17:45 ·
10505 阅读 ·
6 评论