Enabling assertions in Netbeans

前端 未结 8 2105
花落未央
花落未央 2020-12-07 00:40

I wanna do something like

java -enableassertions com.geeksanonymous.TestClass

How do I do this?

8条回答
  •  南方客
    南方客 (楼主)
    2020-12-07 01:18

    With a Maven project in netbeans 7.0, choose "File" -> "Project Properties ()".

    In the window that appears, choose "Run", and add -enableassertions to the "VM Options" textbox.

提交回复
热议问题