Details
-
Bug
-
Status: Closed
-
Must
-
Resolution: Fixed
-
OpenMRS 1.8.4, OpenMRS 1.9.3
-
None
-
None
-
Medium
Description
I would like to be able to do something like this:
@SkipBaseSetup public abstract class BaseMirebalaisReportTest extends BaseModuleContextSensitiveTest { @Autowired protected ReportDefinitionService reportDefinitionService; @Before public void setup() throws Exception { executeDataSet("org/openmrs/module/mirebalaisreports/coreMetadata.xml"); authenticate(); } }
However when I do a concrete implementation of this class, our test framework code doesn't notice the @SkipBaseSetup annotation on the abstract base class, and I have to add the annotation to the subclass as well.
We need to fix org.openmrs.test.SkipBaseSetupAnnotationExecutionListener so that it also looks at superclasses of the test class for the SkipBaseSetup annotation.