Repository: camel Updated Branches: refs/heads/master 7275b3366 -> e0d313fe0
removed blank lines. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e0d313fe Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e0d313fe Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e0d313fe Branch: refs/heads/master Commit: e0d313fe086ba62b9fc2ac1df22c00a6770d7844 Parents: a6384db Author: Joseluis Pedrosa <joseluis.pedr...@elephanttalk.com> Authored: Fri May 27 14:09:35 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sat May 28 08:48:19 2016 +0200 ---------------------------------------------------------------------- .../camel/component/spring/batch/SpringBatchEndpoint.java | 4 ---- .../camel/component/spring/batch/SpringBatchEndpointTest.java | 5 ----- 2 files changed, 9 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/e0d313fe/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java b/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java index 29e7f15..8974f67 100644 --- a/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java +++ b/components/camel-spring-batch/src/main/java/org/apache/camel/component/spring/batch/SpringBatchEndpoint.java @@ -38,7 +38,6 @@ import org.springframework.batch.core.launch.JobLauncher; @UriEndpoint(scheme = "spring-batch", title = "Spring Batch", syntax = "spring-batch:jobName", producerOnly = true, label = "spring,batch,scheduling") public class SpringBatchEndpoint extends DefaultEndpoint { - @UriPath @Metadata(required = "true") private String jobName; @@ -152,7 +151,6 @@ public class SpringBatchEndpoint extends DefaultEndpoint { this.jobLauncher = jobLauncher; } - /** * Explicitly defines if the jobName shouls be taken from the headers instead of the URI. */ @@ -160,10 +158,8 @@ public class SpringBatchEndpoint extends DefaultEndpoint { this.jobFromHeader = jobFromHeader; } - public Boolean getJobFromHeader() { return jobFromHeader; } - } http://git-wip-us.apache.org/repos/asf/camel/blob/e0d313fe/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java b/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java index e596955..4fa6007 100644 --- a/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java +++ b/components/camel-spring-batch/src/test/java/org/apache/camel/component/spring/batch/SpringBatchEndpointTest.java @@ -68,7 +68,6 @@ public class SpringBatchEndpointTest extends CamelTestSupport { @EndpointInject(uri = "mock:error") MockEndpoint errorEndpoint; - @Override protected RouteBuilder createRouteBuilder() throws Exception { return new RouteBuilder() { @@ -83,8 +82,6 @@ public class SpringBatchEndpointTest extends CamelTestSupport { }; } - - @Override public JndiRegistry createRegistry() throws Exception { JndiRegistry registry = super.createRegistry(); @@ -129,7 +126,6 @@ public class SpringBatchEndpointTest extends CamelTestSupport { mockEndpoint.expectedMessageCount(1); errorEndpoint.expectedMessageCount(0); - //dynamic job work if header is present and the job exists final Map<String, Object> headers = new HashMap<>(); headers.put(SpringBatchComponent.JOB_NAME, "dynamicMockjob"); @@ -139,7 +135,6 @@ public class SpringBatchEndpointTest extends CamelTestSupport { errorEndpoint.assertIsSatisfied(); } - @Test public void shouldInjectJobToEndpoint() throws IllegalAccessException { SpringBatchEndpoint batchEndpoint = getMandatoryEndpoint("spring-batch:mockJob", SpringBatchEndpoint.class);