While writing tests for this issue, i got the following error :
Tests run: 60, Failures: 0, Errors: 1, Skipped: 2, Time elapsed: 14.664 sec <<< FAILURE! - in org.openmrs.api.AdministrationServiceTest
setImplementationId_shouldOverwriteImplementationIdInDatabaseIfExists(org.openmrs.api.AdministrationServiceTest) Time elapsed: 0.016 sec <<< ERROR!
org.dbunit.DatabaseUnitRuntimeException: org.dbunit.dataset.NoSuchTableException: concept_source
I checked for the table name here and found the table name as concept_reference_source which i think is incorrectly written here as concept_source.
I tried changing it but the changes are getting automatically reverted when building the code.
Please anyone have a look at it and tell me how to change this.
Interesting, the only place where this faulty test dataset is referred to is in this test method (that is
@Ignore-annotated). Perhaps could it be part of your ticket to clean that one up too?
I don’t understand why your changes would be reverted when building the code, are you sure that you are indeed editing the file at the below path?
Look carefully because there would be 3 version of it after a build is done:
$ find . -iname "AdministrationServiceTest-general.xml"
And the versions in api/bin or api/target would be overwritten by a build.
yes this was happening! I changed the version in api/src and it worked
yes this was the only place this dataset was referred. I wrote a new test method with the given change in dataset though.
Thank you for your help @mksd