我有一个用JHipster生成的项目。当我运行测试时,我收到以下错误:
Exception in thread "main" Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
测试配置如下:
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(classes = MyApplication.class)
@WebAppConfiguration
@IntegrationTest
public class MyControllerTest {
// some CRUD tests (create, update, put and delete)
}
据我所知,spring boot启动嵌入式tomcat来运行CRUD测试。如何为这些测试扩展permgen空间和堆内存?我应该在application-dev.yml文件中设置一些属性吗?
谢谢你, 特勤。