@@ -53,7 +53,7 @@ public void testMethodValidationInterceptor() {
53
53
ProxyFactory proxyFactory = new ProxyFactory (bean );
54
54
proxyFactory .addAdvice (new MethodValidationInterceptor ());
55
55
proxyFactory .addAdvisor (new AsyncAnnotationAdvisor ());
56
- doTestProxyValidation ((MyValidInterface ) proxyFactory .getProxy ());
56
+ doTestProxyValidation ((MyValidInterface <?> ) proxyFactory .getProxy ());
57
57
}
58
58
59
59
@ Test
@@ -69,6 +69,7 @@ public void testMethodValidationPostProcessor() {
69
69
ac .close ();
70
70
}
71
71
72
+ @ SuppressWarnings ({ "rawtypes" , "unchecked" })
72
73
private void doTestProxyValidation (MyValidInterface proxy ) {
73
74
assertThat (proxy .myValidMethod ("value" , 5 )).isNotNull ();
74
75
assertThatExceptionOfType (ValidationException .class ).isThrownBy (() ->
@@ -88,6 +89,7 @@ private void doTestProxyValidation(MyValidInterface proxy) {
88
89
}
89
90
90
91
@ Test
92
+ @ SuppressWarnings ("resource" )
91
93
public void testLazyValidatorForMethodValidation () {
92
94
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (
93
95
LazyMethodValidationConfig .class , CustomValidatorBean .class ,
@@ -96,6 +98,7 @@ public void testLazyValidatorForMethodValidation() {
96
98
}
97
99
98
100
@ Test
101
+ @ SuppressWarnings ("resource" )
99
102
public void testLazyValidatorForMethodValidationWithProxyTargetClass () {
100
103
AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext (
101
104
LazyMethodValidationConfigWithProxyTargetClass .class , CustomValidatorBean .class ,
0 commit comments