Polishing

This commit is contained in:
Juergen Hoeller 2014-01-13 23:49:39 +01:00
parent 354917c53d
commit f8f6c5fd89
2 changed files with 2 additions and 5 deletions

View File

@ -256,7 +256,7 @@ public class CronTriggerFactoryBean implements FactoryBean<CronTrigger>, BeanNam
this.cronTrigger = cti; this.cronTrigger = cti;
*/ */
Class cronTriggerClass; Class<?> cronTriggerClass;
Method jobKeyMethod; Method jobKeyMethod;
try { try {
cronTriggerClass = getClass().getClassLoader().loadClass("org.quartz.impl.triggers.CronTriggerImpl"); cronTriggerClass = getClass().getClassLoader().loadClass("org.quartz.impl.triggers.CronTriggerImpl");

View File

@ -35,7 +35,6 @@ public class GroovyAspectTests {
@Test @Test
public void testManualGroovyBeanWithUnconditionalPointcut() throws Exception { public void testManualGroovyBeanWithUnconditionalPointcut() throws Exception {
LogUserAdvice logAdvice = new LogUserAdvice(); LogUserAdvice logAdvice = new LogUserAdvice();
GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv"); GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv");
@ -43,7 +42,6 @@ public class GroovyAspectTests {
new ClassPathResource("GroovyServiceImpl.grv", getClass()))); new ClassPathResource("GroovyServiceImpl.grv", getClass())));
testAdvice(new DefaultPointcutAdvisor(logAdvice), logAdvice, target, "GroovyServiceImpl"); testAdvice(new DefaultPointcutAdvisor(logAdvice), logAdvice, target, "GroovyServiceImpl");
} }
@Test @Test
@ -61,7 +59,6 @@ public class GroovyAspectTests {
@Test @Test
public void testManualGroovyBeanWithDynamicPointcut() throws Exception { public void testManualGroovyBeanWithDynamicPointcut() throws Exception {
LogUserAdvice logAdvice = new LogUserAdvice(); LogUserAdvice logAdvice = new LogUserAdvice();
GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv"); GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv");
@ -76,7 +73,6 @@ public class GroovyAspectTests {
@Test @Test
public void testManualGroovyBeanWithDynamicPointcutProxyTargetClass() throws Exception { public void testManualGroovyBeanWithDynamicPointcutProxyTargetClass() throws Exception {
LogUserAdvice logAdvice = new LogUserAdvice(); LogUserAdvice logAdvice = new LogUserAdvice();
GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv"); GroovyScriptFactory scriptFactory = new GroovyScriptFactory("GroovyServiceImpl.grv");
@ -91,6 +87,7 @@ public class GroovyAspectTests {
private void testAdvice(Advisor advisor, LogUserAdvice logAdvice, TestService target, String message) private void testAdvice(Advisor advisor, LogUserAdvice logAdvice, TestService target, String message)
throws Exception { throws Exception {
testAdvice(advisor, logAdvice, target, message, false); testAdvice(advisor, logAdvice, target, message, false);
} }