File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
omod-2.0/src/test/java/org/openmrs/module/attachments/rest Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 55
66import java .io .IOException ;
77import java .util .List ;
8- import java .util .Map ;
98import java .util .stream .Collectors ;
109
1110import org .apache .commons .beanutils .PropertyUtils ;
1413import org .junit .Test ;
1514import org .openmrs .Obs ;
1615import org .openmrs .Patient ;
17- import org .openmrs .api .ConceptService ;
1816import org .openmrs .api .ObsService ;
1917import org .openmrs .api .PatientService ;
2018import org .openmrs .module .attachments .AttachmentsConstants ;
@@ -38,9 +36,6 @@ public class AttachmentRestController2_0Test extends MainResourceControllerTest
3836 @ Autowired
3937 private ObsService obsService ;
4038
41- @ Autowired
42- private ConceptService conceptService ;
43-
4439 @ Autowired
4540 private PatientService patientService ;
4641
@@ -55,10 +50,8 @@ public void setup() throws Exception {
5550 testHelper .init ();
5651 obs = testHelper .getTestComplexObs ();
5752
58- Map <String , ComplexObsHandler > handlers = obsService .getHandlers ();
59- handlers .put (TestAttachmentBytesViewHandler .class .getSimpleName (),
53+ obsService .registerHandler (TestAttachmentBytesViewHandler .class .getSimpleName (),
6054 (ComplexObsHandler ) new TestAttachmentBytesViewHandler ());
61- obsService .setHandlers (handlers );
6255 }
6356
6457 @ After
You can’t perform that action at this time.
0 commit comments