JUnit assert message as first or second argument

Thanks, i’ll try that but it should probably solve the problem.

Also, do the assert functions take the message as first or second argument, because in SimpleTests.java the message is passed first, but in the junit docs that I can find, it is listed as the second parameter.

You can Control+Space to see the help of a function in VSCode.
You can Control+Click to jump to the source code of a function in VSCode.
Both (and the junit.org documentation for junit4) will tell you that the message is the first argument.

1 Like