Running a Single Test Case

You run a single test case as follows:

  1. Open the Java perspective
  2. In the Package Navigator, expand the test package


  3. Right-click on a test case (for example, CustomerTest.java) and select Run As > JUnit Test.
  4. Select the JUnit view to verify the result:


    If there are 0 errors, then the test has succeeded. If there are errors, you need to check the Console view to locate the sources of them. The problem could be:

    • The database is not started.

    • The user name or password is wrong.

    • The database is not generated.

    • The mapping is wrong.