use of org.eclipse.xtext.common.types.JvmInnerTypeReference in project xtext-eclipse by eclipse.
the class AbstractTypeProviderTest method test_ParameterizedTypes_inner_param_01.
@Test
public void test_ParameterizedTypes_inner_param_01() {
String typeName = ParameterizedTypes.class.getName();
JvmGenericType type = (JvmGenericType) getTypeProvider().findTypeByName(typeName);
JvmOperation operation = getMethodFromType(type, ParameterizedTypes.class, "plainInner(org.eclipse.xtext.common.types.testSetups.ParameterizedTypes$Inner)");
JvmTypeReference parameterType = operation.getParameters().get(0).getParameterType();
assertTrue(parameterType.getIdentifier(), parameterType instanceof JvmInnerTypeReference);
assertEquals("ParameterizedTypes<S, T, U, V, W>$Inner<W, List<W>, List<W>>", parameterType.getSimpleName());
}
use of org.eclipse.xtext.common.types.JvmInnerTypeReference in project xtext-eclipse by eclipse.
the class AbstractTypeProviderTest method test_ParameterizedTypes_inner_return_02.
@Test
public void test_ParameterizedTypes_inner_return_02() {
String typeName = ParameterizedTypes.class.getName();
JvmGenericType type = (JvmGenericType) getTypeProvider().findTypeByName(typeName);
JvmOperation operation = getMethodFromType(type, ParameterizedTypes.class, "concreteInner()");
JvmTypeReference returnType = operation.getReturnType();
assertTrue(returnType.getIdentifier(), returnType instanceof JvmInnerTypeReference);
assertEquals("ParameterizedTypes<String, String, List<String>, V, String>$Inner<String, List<String>, List<String>>", returnType.getSimpleName());
}
Aggregations