Lines Matching defs:interceptor
47 SimpleInterceptor interceptor = new SimpleInterceptor();
50 aspects.add(new MethodAspect(any(), any(), interceptor));
58 assertTrue(interceptor.invoked);
80 SimpleInterceptor interceptor = new SimpleInterceptor();
82 aspects.add(new MethodAspect(only(Bar.class), annotatedWith(Intercept.class), interceptor));
94 assertFalse(interceptor.invoked);
98 assertFalse(interceptor.invoked);
102 assertTrue(interceptor.invoked);
133 SimpleInterceptor interceptor = new SimpleInterceptor();
135 aspects.add(new MethodAspect(any(), any(), interceptor));
148 SimpleInterceptor interceptor = new SimpleInterceptor();
150 aspects.add(new MethodAspect(not(any()), not(any()), interceptor));