Problem Description
MainClass is a normal class to be run. There is a class ErrorClass in the directory. There is an error, and it will not run when MainClass is run. Now you need to ignore the error in ErrorClass and execute the code in MainClass.
Solution
first step
second step
In the toolbar select, Run Configurations
Set to not check for errors before running
Unit testing notes:
The return value must be void, not a static method