16
16
17
17
package org .springframework .aop .framework ;
18
18
19
- import static org .hamcrest .CoreMatchers .instanceOf ;
20
- import static org .junit .Assert .*;
21
-
22
- import java .lang .reflect .Method ;
23
-
24
- import javax .swing .*;
25
19
import javax .accessibility .Accessible ;
20
+ import javax .swing .*;
26
21
27
22
import org .aopalliance .intercept .MethodInterceptor ;
28
23
import org .aopalliance .intercept .MethodInvocation ;
24
+ import static org .hamcrest .CoreMatchers .*;
25
+ import static org .junit .Assert .*;
26
+ import org .junit .Ignore ;
29
27
import org .junit .Test ;
28
+ import test .aop .CountingBeforeAdvice ;
29
+ import test .aop .NopInterceptor ;
30
+ import test .beans .IOther ;
31
+ import test .beans .ITestBean ;
32
+ import test .beans .TestBean ;
33
+ import test .util .TimeStamped ;
34
+
30
35
import org .springframework .aop .Advisor ;
31
- import org .springframework .aop .MethodBeforeAdvice ;
32
36
import org .springframework .aop .interceptor .DebugInterceptor ;
33
37
import org .springframework .aop .support .AopUtils ;
34
38
import org .springframework .aop .support .DefaultIntroductionAdvisor ;
35
39
import org .springframework .aop .support .DefaultPointcutAdvisor ;
36
40
import org .springframework .aop .support .DelegatingIntroductionInterceptor ;
37
41
38
- import test .aop .MethodCounter ;
39
- import test .aop .NopInterceptor ;
40
- import test .beans .IOther ;
41
- import test .beans .ITestBean ;
42
- import test .beans .TestBean ;
43
- import test .util .TimeStamped ;
44
-
45
42
/**
46
43
* Also tests AdvisedSupport and ProxyCreatorSupport superclasses.
47
44
*
@@ -313,6 +310,7 @@ public void testProxyTargetClassWithConcreteClassAsTarget() {
313
310
}
314
311
315
312
@ Test
313
+ @ Ignore
316
314
public void testExclusionOfNonPublicInterfaces () {
317
315
JFrame frame = new JFrame ();
318
316
ProxyFactory proxyFactory = new ProxyFactory (frame );
@@ -322,25 +320,9 @@ public void testExclusionOfNonPublicInterfaces() {
322
320
}
323
321
324
322
325
- public static class Concrete {
326
-
327
- public void foo () {
328
- }
329
- }
330
-
331
-
332
- @ SuppressWarnings ("serial" )
333
- private static class CountingBeforeAdvice extends MethodCounter implements MethodBeforeAdvice {
334
-
335
- public void before (Method m , Object [] args , Object target ) throws Throwable {
336
- count (m );
337
- }
338
- }
339
-
340
-
341
323
@ SuppressWarnings ("serial" )
342
324
private static class TimestampIntroductionInterceptor extends DelegatingIntroductionInterceptor
343
- implements TimeStamped {
325
+ implements TimeStamped {
344
326
345
327
private long ts ;
346
328
0 commit comments