问题再现:
IDEA启动测试类失败,出现异常:
14:04 Error running 'ControllerTest.postBack': Command line is too long. Shorten command line for ControllerTest.postBack or also for JUnit default configuration.
解决方法:
IDEA进入启动配置编辑页:
Edit Configurations -> JUnit,删除VM options内容,并在Shorten command line选择JAR manifest选项。