@Test void wild_card_list_types_use_upper_bound_in_equality() { JavaType javaType = TypeFactory.constructType(LIST_OF_WILD_CARD_NUMBER); JavaType other = TypeFactory.constructType(LIST_OF_NUMBER); assertThat(javaType, equalTo(other)); TypeFactory.ListType listType = (TypeFactory.ListType) javaType; JavaType elementType = listType.getElementType(); 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();   }