Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Maven establishes an organization for tests.

...

These go into the directory tests in the project root area. The test should have the same package as the class it is testing in order that classes in the package can be accessed easily without a lot of import statements. All classes that extend junit.framework.TestSuite will be executed when Maven builds the project.

Accessing Class Resources

A Real Test Case Example: HitPositionTest