Versions Compared

Key

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

...

Let's imagine a maven project (downloadable HERE here). Unitary tests are placed in the src/test/java folder. You can use mock object as illustrated in the example. When you launch the mvn clean install command, maven compiles your classes and executes the tests. If the tests are executed successfully, the build process continues and creates the bundle as follows:

...