Typing { public final TypeMirror type(Class<?> type) { return elements.getTypeElement(type.getName()).asType(); } Typing(Elements elements, Types types); final TypeMirror type(Class<?> type); final TypeMirror erasure(Class<?> type); final TypeMirror specialize(Class<?> type, Class<?>... parameters); final TypeMirror specialize(Class<?> type, TypeMirror... parameters); final Elements elements; final Types types; }
@Test void type() { assertEquals(type, typing.type(int.class)); verifyNoInteractions(types); }