mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-28 00:59:14 +00:00
fix test
This commit is contained in:
parent
b465a7b781
commit
39c7642d8c
@ -319,20 +319,6 @@ public abstract class BaseSearchParamExtractor implements ISearchParamExtractor
|
|||||||
return extractSearchParams(theResource, extractor, RestSearchParameterTypeEnum.URI);
|
return extractSearchParams(theResource, extractor, RestSearchParameterTypeEnum.URI);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Override
|
|
||||||
// public SearchParamSet<ResourceIndexedSearchParamCoords> extractSearchParamCoords(IBaseResource theResource) {
|
|
||||||
// IExtractor<ResourceIndexedSearchParamCoords> extractor = (params, searchParam, value, path) -> {
|
|
||||||
// if (value.getClass().equals(myLocationPositionDefinition.getImplementingClass())) {
|
|
||||||
// String resourceType = toRootTypeName(theResource);
|
|
||||||
// addCoords_Position(resourceType, params, searchParam, value);
|
|
||||||
// } else {
|
|
||||||
// addUnexpectedDatatypeWarning(params, searchParam, value);
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
//
|
|
||||||
// return extractSearchParams(theResource, extractor, RestSearchParameterTypeEnum.TOKEN);
|
|
||||||
// }
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SearchParamSet<ResourceIndexedSearchParamDate> extractSearchParamDates(IBaseResource theResource) {
|
public SearchParamSet<ResourceIndexedSearchParamDate> extractSearchParamDates(IBaseResource theResource) {
|
||||||
IExtractor<ResourceIndexedSearchParamDate> extractor = (params, searchParam, value, path) -> {
|
IExtractor<ResourceIndexedSearchParamDate> extractor = (params, searchParam, value, path) -> {
|
||||||
@ -396,6 +382,10 @@ public abstract class BaseSearchParamExtractor implements ISearchParamExtractor
|
|||||||
public SearchParamSet<ResourceIndexedSearchParamQuantity> extractSearchParamQuantity(IBaseResource theResource) {
|
public SearchParamSet<ResourceIndexedSearchParamQuantity> extractSearchParamQuantity(IBaseResource theResource) {
|
||||||
|
|
||||||
IExtractor<ResourceIndexedSearchParamQuantity> extractor = (params, searchParam, value, path) -> {
|
IExtractor<ResourceIndexedSearchParamQuantity> extractor = (params, searchParam, value, path) -> {
|
||||||
|
if (value.getClass().equals(myLocationPositionDefinition.getImplementingClass())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
String nextType = toRootTypeName(value);
|
String nextType = toRootTypeName(value);
|
||||||
String resourceType = toRootTypeName(theResource);
|
String resourceType = toRootTypeName(theResource);
|
||||||
switch (nextType) {
|
switch (nextType) {
|
||||||
|
@ -191,7 +191,7 @@ public class SearchParamExtractorMegaTest {
|
|||||||
theIndexesCounter.addAndGet(set.size());
|
theIndexesCounter.addAndGet(set.size());
|
||||||
|
|
||||||
set = theExtractor.extractSearchParamQuantity(resource);
|
set = theExtractor.extractSearchParamQuantity(resource);
|
||||||
assertEquals(0, set.getWarnings().size());
|
assertEquals(String.join("\n", set.getWarnings()), 0, set.getWarnings().size());
|
||||||
theIndexesCounter.addAndGet(set.size());
|
theIndexesCounter.addAndGet(set.size());
|
||||||
|
|
||||||
set = theExtractor.extractSearchParamTokens(resource);
|
set = theExtractor.extractSearchParamTokens(resource);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user