Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
OpenMRS 1.9.1
-
None
-
Medium
Description
Not completely sure how to reproduce this in a unit test, but if you put this line in the started method of ModuleActivator, you get a LazyInitializationError like in the attached stack trace.
ProgramWorkflow wf = Context.getProgramWorkflowService().getProgram(1).getWorkflowByName("HUMAN IMMUNODEFICIENCY VIRUS");
(This assumes that there is a program with id = 1 and a workflow within that program named "HUMAN IMMUNODEFICIENCY VIRUS").