Add some tests for JSON mime types in rest endpoints

This commit is contained in:
Dave Syer
2017-01-06 14:11:48 +00:00
parent 4ad01be090
commit 3357a93cef
3 changed files with 53 additions and 73 deletions

View File

@@ -215,6 +215,10 @@ public class ContextFunctionCatalogAutoConfiguration {
.getGenericReturnType());
type = (ParameterizedType) type.getActualTypeArguments()[0];
Type param = type.getActualTypeArguments()[0];
if (param instanceof ParameterizedType) {
ParameterizedType concrete = (ParameterizedType) param;
param = concrete.getRawType();
}
return ClassUtils.resolveClassName(param.getTypeName(),
registry.getClass().getClassLoader());
}