Polishing.

Reorder methods according to conventions. More speaking names for the newly introduced type lookup methods.

Issue #2517.
This commit is contained in:
Oliver Drotbohm
2022-02-14 14:23:53 +01:00
parent 8d2a3466ef
commit 8bb88ffce1
3 changed files with 54 additions and 42 deletions

View File

@@ -95,11 +95,11 @@ class ParameterizedTypeInformationUnitTests {
assertThat(propertyType.getMapValueType().getType()).isEqualTo(Locale.class);
}
@Test
@Test // #2517
void resolvesVavrMapTypesCorrectly() {
TypeInformation<VavrFoo> type = ClassTypeInformation.from(VavrFoo.class);
TypeInformation<?> propertyType = type.getProperty("param");
var type = ClassTypeInformation.from(VavrFoo.class);
var propertyType = type.getProperty("param");
assertThat(propertyType.getComponentType().getType()).isEqualTo(Locale.class);
assertThat(propertyType.getMapValueType().getType()).isEqualTo(String.class);