From e590e0faf1625519b7b4a209c6ab39a72193b678 Mon Sep 17 00:00:00 2001 From: Agaba Derrick Date: Thu, 9 Jan 2025 22:32:05 +0300 Subject: [PATCH] fix --- src/test/java/org/openelisglobal/AppTestConfig.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/test/java/org/openelisglobal/AppTestConfig.java b/src/test/java/org/openelisglobal/AppTestConfig.java index 909c012f82..8fff302222 100644 --- a/src/test/java/org/openelisglobal/AppTestConfig.java +++ b/src/test/java/org/openelisglobal/AppTestConfig.java @@ -17,7 +17,6 @@ import org.openelisglobal.localization.dao.LocalizationDAO; import org.openelisglobal.localization.service.LocalizationServiceImpl; import org.openelisglobal.note.dao.NoteDAO; -import org.openelisglobal.note.daoimpl.NoteDAOImpl; import org.openelisglobal.note.service.NoteService; import org.openelisglobal.notification.service.AnalysisNotificationConfigService; import org.openelisglobal.notification.service.TestNotificationConfigService; @@ -27,7 +26,6 @@ import org.openelisglobal.organization.daoimpl.OrganizationTypeDAOImpl; import org.openelisglobal.organization.service.OrganizationService; import org.openelisglobal.organization.service.OrganizationTypeService; -import org.openelisglobal.organization.service.OrganizationTypeServiceImpl; import org.openelisglobal.program.service.ImmunohistochemistrySampleService; import org.openelisglobal.program.service.PathologySampleService; import org.openelisglobal.program.service.ProgramSampleService; @@ -348,14 +346,14 @@ public StatusOfSampleService statusOfSampleService() { @Bean @Profile("test") - public OrganizationTypeService organizationTypeService() { - return new OrganizationTypeServiceImpl(); + public OrganizationTypeService OrganizationTypeService() { + return mock(OrganizationTypeService.class); } @Bean @Profile("test") public NoteDAO NoteDAO() { - return new NoteDAOImpl(); + return mock(NoteDAO.class); } @Bean