JUnit tests not printing stack trace when an exception is thrown.

Hi guys,
I believe this is a very nooby question, and I apologize for it in advance. I was using STS to run the Sample Spring Batch project and the JUnit test class that comes with it. Whenever there is an exception within any of the classes that compose the whole test, I get a prinout to the console with the Exception and the stack trace (The tests are marked as passed).

This doesn't seem to be the case in IntelliJ, and while I do get the print outs from every "sout" declared within the classes, any thrown exceptions are never "sout" into the console. Am I doing something wrong or am I missing anything within the configurations from IntelliJ? How can I get it to print out any exception like STS does? I believe I have this working one day, but I just can't remember what I did .

Thanks in advance for any help!

1 comment

Please sign in to leave a comment.