Why assert does not show in intellj idea

Questions and answersCategory: JAVAWhy assert does not show in intellj idea
anyquestiomn asked 10 years ago

 IDE does not show assert statement

admin replied 10 years ago

To change the default behavior of the JUnit runner, edit the Run/Debug configurations, select Edit Defaults, select JUnit, and add “-ea” or “-enableassertions” to the VM parameters.

1 Answers
answered 10 years ago

To change the default behavior of the JUnit runner, edit the Run/Debug configurations, select Edit Defaults, select JUnit, and add “-ea” or “-enableassertions” to the VM parameters.