Error about shouldSetupContext under src/test/java

0 views
Skip to first unread message

Che-Wei Kuo

unread,
Apr 17, 2013, 11:35:46 PM4/17/13
to d...@openmrs.org
Used the Maven Archetype download module , do not do anything.

only use ctrl + shift + F align the source code under moduleApplicationContext.xml

you will get the problem like this
Test set: org.openmrs.module.patientdash.api.PatientDICOMViewerServiceTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.866 sec <<< FAILURE!
shouldSetupContext(org.openmrs.module.patientdash.api.PatientDICOMViewerServiceTest)  Time elapsed: 6.626 sec  <<< ERROR!
org.openmrs.api.APIException: Service not found: interface org.openmrs.module.patientdash.api.PatientDICOMViewerService

I'm trying to do me too follow the module's source codes

what different between initial and after , it's looks like the same 

Initial
 <bean class="org.openmrs.module.patientdash.api.impl.PatientDICOMViewerServiceImpl">
After ctrl + shift + F
<bean
class="org.openmrs.module.patientdash.api.impl.PatientDICOMViewerServiceImpl">

Rafal Korytkowski

unread,
Apr 18, 2013, 5:00:45 AM4/18/13
to Developers List
Hi,

Please do not auto format moduleApplicationContext.xml nor webModuleApplicationContext.xml. It may introduce whitespaces in the serviceContext bean setup which break it.



-Rafał


--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 

Reply all
Reply to author
Forward
0 new messages