首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >运行mock单元测试的时候报错OOM是怎么回事?

运行mock单元测试的时候报错OOM是怎么回事?

提问于 2024-05-20 15:11:56
回答 0关注 0查看 13

单独运行某个测试用例可以通过,全部编译的时候报错

代码语言:txt
复制
org.mockito.exceptions.base.MockitoException: 

Cannot instantiate @InjectMocks field named 'productLogic' of type 'class .server.web.logic.ProductLogic'.
You haven't provided the instance at field declaration so I tried to construct the instance.
However the constructor or the initialization block threw an exception : GC overhead limit exceeded

Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded

不知道是怎么回事,求解

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档