@ParameterizedTest @ArgumentsSource(TestCaseArgumentsProvider.class) @TestCase({OPTIONAL_PARAMETER + "", "Optional<String>"}) @TestCase({INT_PARAMETER + "", "int"}) @TestCase({ZONED_DATE_TIME_PARAMETER + "", "ZonedDateTime"}) @TestCase({LIST_ARRAY_PARAMETER + "", "List<Optional<UUID>>[]"}) @TestCase({FLOAT_ARRAY_PARAMETER + "", "float[]"}) @TestCase({MAP_PARAMETER + "", "Map<Short,BigDecimal>"}) void toStringTest(int arg, String expected) { TypeInfo sut = TypeInfo.ofParameter(randomMethod(), arg); String result = sut.toString(); assertThat(result, equalTo(expected)); }
@Override public String toString() { return TypeUtil.toString(type); }
TypeInfo { @Override public String toString() { return TypeUtil.toString(type); } }
TypeInfo { @Override public String toString() { return TypeUtil.toString(type); } private  TypeInfo(Type type); }
TypeInfo { @Override public String toString() { return TypeUtil.toString(type); } private  TypeInfo(Type type); @Override String toString(); TypeInfo arrayComponentType(); TypeInfo actualTypeArgument(int index); Class<?> rawClass(); static TypeInfo ofParameter(Method method, int parameter); }
TypeInfo { @Override public String toString() { return TypeUtil.toString(type); } private  TypeInfo(Type type); @Override String toString(); TypeInfo arrayComponentType(); TypeInfo actualTypeArgument(int index); Class<?> rawClass(); static TypeInfo ofParameter(Method method, int parameter);  }