In lesson 6, after I add the new test for toString(), I run the JUnit test but only the first three tests run and all pass. Although the 4th test is properly added and the code has been saved, it will not run. It shows up in the package explorer. If I right click on the test for the overwritten toString() method, I get an error that the test failed to initialize. I have tried close and reopening eclipse. Nothing seems to fix the problem. Any help would be greatly appreciated! The tutorials have been so helpful thus far.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In lesson 6, after I add the new test for toString(), I run the JUnit test but only the first three tests run and all pass. Although the 4th test is properly added and the code has been saved, it will not run. It shows up in the package explorer. If I right click on the test for the overwritten toString() method, I get an error that the test failed to initialize. I have tried close and reopening eclipse. Nothing seems to fix the problem. Any help would be greatly appreciated! The tutorials have been so helpful thus far.
I just figured out the problem. I needed to add "@Test" above the unit test code. I must have missed this in the video.
Thanks for letting me know the fix Kristen!
On Thu, Jul 14, 2016, 15:22 Kristin Day klday@users.sf.net wrote: