8
8
import java .util .List ;
9
9
import lombok .NonNull ;
10
10
import org .apache .http .impl .client .CloseableHttpClient ;
11
+ import org .jasypt .util .text .TextEncryptor ;
11
12
import org .openelisglobal .audittrail .dao .AuditTrailService ;
12
13
import org .openelisglobal .citystatezip .service .CityStateZipService ;
13
14
import org .openelisglobal .common .services .IStatusService ;
30
31
import org .openelisglobal .reports .service .WHONetReportServiceImpl ;
31
32
import org .openelisglobal .requester .service .RequesterTypeService ;
32
33
import org .openelisglobal .sampleqaevent .service .SampleQaEventService ;
33
- import org .openelisglobal .siteinformation .service .SiteInformationService ;
34
34
import org .openelisglobal .testresult .service .TestResultService ;
35
35
import org .openelisglobal .typeofsample .service .TypeOfSampleService ;
36
36
import org .openelisglobal .typeofsample .service .TypeOfSampleTestService ;
72
72
"org.openelisglobal.systemmodule" , "org.openelisglobal.testdictionary" , "org.openelisglobal.dictionarycategory" ,
73
73
"org.openelisglobal.observationhistorytype" , "org.openelisglobal.statusofsample" , "org.openelisglobal.test" ,
74
74
"org.openelisglobal.analyzerimport" , "org.openelisglobal.analyzer" , "org.openelisglobal.testanalyte" ,
75
- "org.openelisglobal.observationhistory" , "org.openelisglobal.systemusersection" }, excludeFilters = {
75
+ "org.openelisglobal.observationhistory" , "org.openelisglobal.systemusersection" ,
76
+ "org.openelisglobal.siteinformation" , "org.openelisglobal.config" }, excludeFilters = {
76
77
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.patient.controller.*" ),
77
78
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.organization.controller.*" ),
78
79
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.sample.controller.*" ),
79
80
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.result.controller.*" ),
80
81
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.login.controller.*" ),
81
82
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.program.controller.*" ),
83
+ @ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.siteinformation.controller.*" ),
82
84
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.config.*" ),
83
85
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.fhir.*" ),
84
86
@ ComponentScan .Filter (type = FilterType .REGEX , pattern = "org.openelisglobal.*.fhir.*" ),
85
87
@ ComponentScan .Filter (type = FilterType .ASSIGNABLE_TYPE , classes = WHONetReportServiceImpl .class ) })
86
88
@ EnableWebMvc
87
89
public class AppTestConfig implements WebMvcConfigurer {
88
90
91
+ @ Bean
92
+ @ Profile ("test" )
93
+ public TextEncryptor textEncryptor () {
94
+ return mock (TextEncryptor .class );
95
+ }
96
+
89
97
@ Bean ()
90
98
@ Profile ("test" )
91
99
public PluginAnalyzerService pluginAnalyzerService () {
@@ -236,12 +244,6 @@ public Versioning versioning() {
236
244
return mock (Versioning .class );
237
245
}
238
246
239
- @ Bean ()
240
- @ Profile ("test" )
241
- public SiteInformationService siteInformationService () {
242
- return mock (SiteInformationService .class );
243
- }
244
-
245
247
@ Bean
246
248
@ Profile ("test" )
247
249
public PasswordEncoder passwordEncoder () {
@@ -296,4 +298,4 @@ public void configureMessageConverters(@NonNull List<HttpMessageConverter<?>> co
296
298
converters .add (jsonConverter ());
297
299
}
298
300
299
- }
301
+ }
0 commit comments