Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Correct name of an abstract test class

...

  • All unit test classes must end in "Test". For example: "ItemTest.java" or "DiscoverQueryBuilderTest"
  • For dspace-api, all Unit Tests should extend either AbstractUnitTest or AbstractObjectTest AbstractDSpaceObjectTest.  For example, see ItemTest
  • For dspace-server-webapp, Unit Tests need not extend any class and just need to be named ending with Test.  For example, see DiscoverQueryBuilderTest
  • Many example Unit Tests can be found in the dspace-api, and a few in the dspace-server-webapp.  We recommend looking at them for example code, etc.

...