且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在IntelliJ或Eclipse中设置java系统属性

更新时间:2022-05-29 19:18:02

在InteliJ goto中运行 - >编辑配置
在新窗口中右窗格,打开Junit并点击你的测试。
现在,在中间单击配置选项卡并更新VM选项

In InteliJ goto "Run"->"Edit Configurations" In the new window, right panel, open the Junit and click on your test. Now, in the middle click on the "Configuration" tab and update the "VM options"

请注意,您需要为每个测试类执行此操作,但您可以从右侧面板中的junit中删除所有测试,并在默认值中更新它

Note that you will need to do this for every test class, but you can remove all the test from the junit in the right panel and update it in the "Defaults"