Versions Compared

Key

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

Please note that the @should annotation and the corresponding Eclipse plugin are no longer supported. This page is kept out of historical interest.


Simple JUnit testing usually means writing one large test for each method. However, when a test breaks, its often very difficult to debug, fix, or know if it should be removed.

...

Typing out the format for each @should annotation and each junit test is tedious. We created an eclipse plugin that will create the unit test and annotation to match a given @should annotation.

Generate Test Case Plugin

Example

In /src/api/org/openmrs/somepackage/SomeObject.java:

...