@@ -74,7 +74,7 @@ void shouldCountFacetsWithNoSearchAndNoSelectedFacetsAndNoConsents() {
74
74
75
75
@ Test
76
76
void shouldCountFacetsWithNoSearchAndNoSelectedFacetsAndConsents () {
77
- Filter filter = new Filter (List .of (), "" , List .of ("c2" ));
77
+ Filter filter = new Filter (List .of (), "" , List .of ("LOINC.c2" , "PhenX.c2" , "phs000007. c2" ));
78
78
79
79
MapSqlParameterSource params = new MapSqlParameterSource ();
80
80
String query = subject .createFacetSQLAndPopulateParams (filter , params );
@@ -107,7 +107,7 @@ void shouldCountFacetsWithSearchAndNoSelectedFacetsAndNoConsents() {
107
107
108
108
@ Test
109
109
void shouldCountFacetsWithSearchAndNoSelectedFacetsAndConsents () {
110
- Filter filter = new Filter (List .of (), "age" , List .of ("c1" ));
110
+ Filter filter = new Filter (List .of (), "age" , List .of ("phs002715.c1" , "phs000284.c1" , "phs002385. c1" ));
111
111
112
112
MapSqlParameterSource params = new MapSqlParameterSource ();
113
113
String query = subject .createFacetSQLAndPopulateParams (filter , params );
@@ -147,7 +147,7 @@ void shouldCountFacetsWithSearchAndOneSelectedFacetsAndNoConsents() {
147
147
void shouldCountFacetsWithSearchAndOneSelectedFacetsAndConsents () {
148
148
Filter filter = new Filter (
149
149
List .of (new Facet ("phs002715" , "study_ids_dataset_ids" )),
150
- "age" , List .of ("c1" )
150
+ "age" , List .of ("phs002715.c1" , "phs000284.c1" , "phs002385. c1" )
151
151
);
152
152
153
153
MapSqlParameterSource params = new MapSqlParameterSource ();
@@ -191,7 +191,7 @@ void shouldCountFacetsNoSearchAndOneSelectedFacetsAndNoConsents() {
191
191
void shouldCountFacetsNoSearchAndOneSelectedFacetsAndConsents () {
192
192
Filter filter = new Filter (
193
193
List .of (new Facet ("phs002715" , "study_ids_dataset_ids" )),
194
- "" , List .of ("c2" )
194
+ "" , List .of ("phs000007. c2" )
195
195
);
196
196
197
197
MapSqlParameterSource params = new MapSqlParameterSource ();
@@ -235,7 +235,7 @@ void shouldCountFacetsWithSearchAndTwoSelectedFacetsInDifferentCatsAndConsents()
235
235
new Facet ("phs000007" , "study_ids_dataset_ids" ),
236
236
new Facet ("LOINC" , "nsrr_harmonized" )
237
237
),
238
- "cola" , List .of ("c1" )
238
+ "cola" , List .of ("LOINC.c1" , "PhenX.c1" , "phs000007. c1" )
239
239
);
240
240
241
241
MapSqlParameterSource params = new MapSqlParameterSource ();
@@ -281,7 +281,7 @@ void shouldCountFacetsNoSearchAndTwoSelectedFacetsInDifferentCatsAndConsents() {
281
281
new Facet ("phs000007" , "study_ids_dataset_ids" ),
282
282
new Facet ("LOINC" , "nsrr_harmonized" )
283
283
),
284
- "" , List .of ("c1" )
284
+ "" , List .of ("LOINC.c1" , "PhenX.c1" , "phs000007. c1" )
285
285
);
286
286
287
287
MapSqlParameterSource params = new MapSqlParameterSource ();
0 commit comments