Builds and runs unit tests. More details of the release in https://wiki.openmrs.org/x/i4DTAw

Build: #641 was successful Changes by Daniel Kayiwa

Stages & jobs

  1. Default Stage

  2. Release

    Requires a user to start manually

Code commits

openmrs-module-webservices.rest

  • Daniel Kayiwa

    Daniel Kayiwa 96b9aefbebefcdb88cb74d49dd52322256f744f7

    Merge pull request #245 from teleivo/RESTWS-623
    RESTWS-623 Make RestServiceImpl.getResourceByName testable

  • teleivo <mrteleivo@gmail.com>

    teleivo <mrteleivo@gmail.com> a95bbac678b7d7fbba9112dfac9548edeb7c870f m

    RESTWS-623 Make RestServiceImpl.getResourceByName testable
    * add dependency for OpenmrsClassScanner to RestServiceImpl and inject via xml
    using the factory method on OpenmrsClassScanner.getInstance() which returns the
    singleton instance
    * add helper method to RestServiceImplTest to set the current openmrs
    version for tests
    * add fake/test package in omod-common/src/test/java/org/mockingbird/test/rest/resource
    with fake Resource/SubResources for testing purposes so they do not
    influence other tests since classes on org.openmrs classpath get loaded
    by OpenmrsClassScanner
    * add tests for getResourceByName by mocking the
    OpenmrsClassScanner.getClasses

    • omod-common/src/main/java/org/openmrs/module/webservices/rest/web/api/impl/RestServiceImpl.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/main/resources/webModuleApplicationContext.xml (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/test/java/org/mockingbird/test/rest/resource/DuplicateNameAndOrderMockingBirdFantasyResource.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/test/java/org/mockingbird/test/rest/resource/DuplicateNameMockingBirdFantasyResource.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/test/java/org/mockingbird/test/rest/resource/MockingBirdFantasyNameResource.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/test/java/org/mockingbird/test/rest/resource/MockingBirdFantasyResource.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/test/java/org/mockingbird/test/rest/resource/UnannotatedMockingBirdFantasyResource.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)
    • omod-common/src/test/java/org/openmrs/module/webservices/rest/web/api/impl/RestServiceImplTest.java (version a95bbac678b7d7fbba9112dfac9548edeb7c870f)