Versions Compared

Key

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

...

  • there is modul openhub-test that defines base classes supporting testing. Classes are defined in package org.openhubframework.openhub.test
  • base class hierarchy
  • classes overview:
    • AbstractTest - main parent class for implementing unit tests
      • defines Spring profile "test"
      • references TestConfig that defines basic configuration for tests
      • defines common handy methods
    • AbstractDbTest - main parent class for writing tests with database
      • extends AbstractTest
      • defines Spring profile "h2" when H2DB is used for unit tests
      • defines handy methods for working with DB
    • ActiveRoutes - annotation that is used to declare which Camel route definitions should be active for specific test.
      • ActiveRoutesCollector activates only routes which are defined by ActiveRoutes annotation

Image Added

How to set up tests for new module/project

...