28
28
* Tests for {@link ReflectionTypeReference}.
29
29
*
30
30
* @author Stephane Nicoll
31
+ * @author Moritz Halbritter
31
32
*/
32
33
class ReflectionTypeReferenceTests {
33
34
@@ -38,10 +39,22 @@ void typeReferenceFromClasHasSuitableReflectionTargetName(TypeReference typeRefe
38
39
}
39
40
40
41
static Stream <Arguments > reflectionTargetNames () {
41
- return Stream .of (Arguments .of (ReflectionTypeReference .of (int .class ), "int" ),
42
+ return Stream .of (
43
+ Arguments .of (ReflectionTypeReference .of (int .class ), "int" ),
42
44
Arguments .of (ReflectionTypeReference .of (int [].class ), "int[]" ),
43
45
Arguments .of (ReflectionTypeReference .of (Integer [].class ), "java.lang.Integer[]" ),
44
- Arguments .of (ReflectionTypeReference .of (Object [].class ), "java.lang.Object[]" ));
46
+ Arguments .of (ReflectionTypeReference .of (Object [].class ), "java.lang.Object[]" ),
47
+ Arguments .of (ReflectionTypeReference .of (StaticInner .class ), "org.springframework.aot.hint.ReflectionTypeReferenceTests$StaticInner" ),
48
+ Arguments .of (ReflectionTypeReference .of (StaticInner [].class ), "org.springframework.aot.hint.ReflectionTypeReferenceTests$StaticInner[]" ),
49
+ Arguments .of (ReflectionTypeReference .of (Inner .class ), "org.springframework.aot.hint.ReflectionTypeReferenceTests$Inner" ),
50
+ Arguments .of (ReflectionTypeReference .of (Inner [].class ), "org.springframework.aot.hint.ReflectionTypeReferenceTests$Inner[]" )
51
+ );
52
+ }
53
+
54
+ static class StaticInner {
55
+ }
56
+
57
+ class Inner {
45
58
}
46
59
47
60
}
0 commit comments