Build: #641 was successful
Job: Default Job was successful
Code commits
openmrs-module-webservices.rest
-
Daniel Kayiwa 96b9aefbebefcdb88cb74d49dd52322256f744f7
Merge pull request #245 from teleivo/RESTWS-623
RESTWS-623 Make RestServiceImpl.getResourceByName testable -
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)