Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Agaba-derrick committed Jan 9, 2025
1 parent 57be4ed commit e590e0f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/test/java/org/openelisglobal/AppTestConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e590e0f

Please sign in to comment.