June 2018
Intermediate to advanced
596 pages
12h 39m
English
Let's run this test case in Eclipse. Right-click on the file, or anywhere in the project in Package Explorer, and select the Run As | JUnit Test menu. Eclipse finds all unit tests in the project, executes them, and shows the results in the JUnit view:

This view shows a summary of the test cases run. In this case, it has run one test case, which was successful. The green bar shows that all test cases were executed successfully.
Now, let's add one more check into the method:
@Test public void testIsValidCourse() { ... //set empty course name course.setName(""); Assert.assertFalse(course.isValidCourse()); ...Read now
Unlock full access