@@ -35,15 +35,13 @@ public class GroovyAspectTests {
3535
3636 @ Test
3737 public void testManualGroovyBeanWithUnconditionalPointcut () throws Exception {
38-
3938 LogUserAdvice logAdvice = new LogUserAdvice ();
4039
4140 GroovyScriptFactory scriptFactory = new GroovyScriptFactory ("GroovyServiceImpl.grv" );
4241 TestService target = (TestService ) scriptFactory .getScriptedObject (new ResourceScriptSource (
4342 new ClassPathResource ("GroovyServiceImpl.grv" , getClass ())));
4443
4544 testAdvice (new DefaultPointcutAdvisor (logAdvice ), logAdvice , target , "GroovyServiceImpl" );
46-
4745 }
4846
4947 @ Test
@@ -61,7 +59,6 @@ public void testManualGroovyBeanWithStaticPointcut() throws Exception {
6159
6260 @ Test
6361 public void testManualGroovyBeanWithDynamicPointcut () throws Exception {
64-
6562 LogUserAdvice logAdvice = new LogUserAdvice ();
6663
6764 GroovyScriptFactory scriptFactory = new GroovyScriptFactory ("GroovyServiceImpl.grv" );
@@ -76,7 +73,6 @@ public void testManualGroovyBeanWithDynamicPointcut() throws Exception {
7673
7774 @ Test
7875 public void testManualGroovyBeanWithDynamicPointcutProxyTargetClass () throws Exception {
79-
8076 LogUserAdvice logAdvice = new LogUserAdvice ();
8177
8278 GroovyScriptFactory scriptFactory = new GroovyScriptFactory ("GroovyServiceImpl.grv" );
@@ -91,6 +87,7 @@ public void testManualGroovyBeanWithDynamicPointcutProxyTargetClass() throws Exc
9187
9288 private void testAdvice (Advisor advisor , LogUserAdvice logAdvice , TestService target , String message )
9389 throws Exception {
90+
9491 testAdvice (advisor , logAdvice , target , message , false );
9592 }
9693
0 commit comments