@Test void upper_bound_of_wild_card_parameterized_type_replaces_wild_card_type() { JavaType javaType = TypeFactory.constructType(SUPPLIER_WILD_CARD_NUMBER); TypeFactory.Parameterized parameterized = (TypeFactory.Parameterized) javaType; JavaType elementType = parameterized.getElementTypes()[0]; assertThat(elementType.getOriginal(), equalTo(Number.class)); }
static JavaType constructType(Type type) { try { return constructTypeInner(type); } catch (Exception e) { throw new InvalidDataTableTypeException(type, e); } }
TypeFactory { static JavaType constructType(Type type) { try { return constructTypeInner(type); } catch (Exception e) { throw new InvalidDataTableTypeException(type, e); } } }
TypeFactory { static JavaType constructType(Type type) { try { return constructTypeInner(type); } catch (Exception e) { throw new InvalidDataTableTypeException(type, e); } } private  TypeFactory(); }
TypeFactory { static JavaType constructType(Type type) { try { return constructTypeInner(type); } catch (Exception e) { throw new InvalidDataTableTypeException(type, e); } } private  TypeFactory();  }
TypeFactory { static JavaType constructType(Type type) { try { return constructTypeInner(type); } catch (Exception e) { throw new InvalidDataTableTypeException(type, e); } } private  TypeFactory();   }