From edff65657712892211c80264f70c6ce080cb9809 Mon Sep 17 00:00:00 2001 From: lucasward Date: Wed, 19 Nov 2008 07:11:55 +0000 Subject: [PATCH] OPEN - issue BATCH-673: Add new Java 5.0 features http://jira.springframework.org/browse/BATCH-673 Fixed adapter tests. --- .../JobExecutionListenerAdapterTests.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/listener/JobExecutionListenerAdapterTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/listener/JobExecutionListenerAdapterTests.java index c335ee999..02da9fc77 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/listener/JobExecutionListenerAdapterTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/listener/JobExecutionListenerAdapterTests.java @@ -21,7 +21,6 @@ import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; import org.springframework.batch.core.JobExecution; -import org.springframework.batch.core.JobExecutionListener; import org.springframework.batch.core.annotation.AfterJob; import org.springframework.batch.core.annotation.BeforeJob; @@ -33,7 +32,6 @@ public class JobExecutionListenerAdapterTests { private TestClass testClass; private AnnotatedTestClass annotatedTestClass; - private InterfaceTestClass interfaceTestClass; private JobExecution jobExecution = new JobExecution(11L); @@ -41,7 +39,6 @@ public class JobExecutionListenerAdapterTests { public void setUp(){ testClass = new TestClass(); annotatedTestClass = new AnnotatedTestClass(); - interfaceTestClass = new InterfaceTestClass(); } @Test @@ -94,16 +91,6 @@ public class JobExecutionListenerAdapterTests { assertTrue(annotatedTestClass.afterJobCalled); } - @Test - public void testWithInterface() throws Exception{ - JobExecutionListenerAdapter adapter = new JobExecutionListenerAdapter(interfaceTestClass); - adapter.afterPropertiesSet(); - adapter.beforeJob(jobExecution); - adapter.afterJob(jobExecution); - assertTrue(annotatedTestClass.beforeJobCalled); - assertTrue(annotatedTestClass.afterJobCalled); - } - private class TestClass{ boolean beforeJobCalled = false; @@ -131,8 +118,4 @@ public class JobExecutionListenerAdapterTests { } } - private class InterfaceTestClass extends TestClass implements JobExecutionListener { - - } - }