@Test void wild_card_parameterized_types_use_upper_bound_in_equality() { JavaType javaType = TypeFactory.constructType(SUPPLIER_WILD_CARD_NUMBER); JavaType other = TypeFactory.constructType(SUPPLIER_NUMBER); assertThat(javaType, equalTo(other)); 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();   }