com.baomidou.mybatisplus.core.exceptions.MybatisPlusException: can not find lambda cache for this entity
这个点是有效的,上面这个问题在mockito方法执行前加
TableInfoHelper.initTableInfo(new MapperBuilderAssistant(new MybatisConfiguration(), “”), xxxxDO.class);来解决。
但是又遇到新的问题,多个mockitoTest 一起执行的时候会报
Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for xxx.xxxx.xxx.xxxxMapper.mybatis-plus_xxxxxDO
so,还是不能直接用