You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bv...@apache.org on 2014/02/21 16:07:18 UTC
[1/2] Renamed all the XyzComponentConfigurationAndDocumentation test
classes to XyzComponentConfigurationAndDocumentationTest as otherwise
surefire-plugin would not run them at all while building.
Repository: camel
Updated Branches:
refs/heads/master 836e69ab0 -> e1b6ee239
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..5785c45
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.xslt;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class XsltComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ XsltComponent comp = context.getComponent("xslt", XsltComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("xslt:foo?deleteOutputFile=true");
+
+ assertEquals("true", conf.getParameter("deleteOutputFile"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"resourceUri\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("xslt");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentation.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 2d7c354..0000000
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.file.remote;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Test;
-
-public class FtpComponentConfigurationAndDocumentation extends CamelTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- FtpComponent comp = context.getComponent("ftp", FtpComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("ftp:127.0.0.1?username=foo&password=secret");
-
- assertEquals("foo", conf.getParameter("username"));
- assertEquals("secret", conf.getParameter("password"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
- assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("ftp");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentationTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..24fb87a
--- /dev/null
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.file.remote;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+public class FtpComponentConfigurationAndDocumentationTest extends CamelTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ FtpComponent comp = context.getComponent("ftp", FtpComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("ftp:127.0.0.1?username=foo&password=secret");
+
+ assertEquals("foo", conf.getParameter("username"));
+ assertEquals("secret", conf.getParameter("password"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
+ assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("ftp");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentation.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 517fd5b..0000000
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.file.remote;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Test;
-
-public class FtpsComponentConfigurationAndDocumentation extends CamelTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- FtpsComponent comp = context.getComponent("ftps", FtpsComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("ftps:127.0.0.1?username=foo&password=secret");
-
- assertEquals("foo", conf.getParameter("username"));
- assertEquals("secret", conf.getParameter("password"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
- assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("ftps");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentationTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..0ab69e3
--- /dev/null
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpsComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.file.remote;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+public class FtpsComponentConfigurationAndDocumentationTest extends CamelTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ FtpsComponent comp = context.getComponent("ftps", FtpsComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("ftps:127.0.0.1?username=foo&password=secret");
+
+ assertEquals("foo", conf.getParameter("username"));
+ assertEquals("secret", conf.getParameter("password"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
+ assertTrue(json.contains("\"dataTimeout\": { \"type\": \"int\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("ftps");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentation.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 7ead6ce..0000000
--- a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.file.remote;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Test;
-
-public class SftpComponentConfigurationAndDocumentation extends CamelTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- SftpComponent comp = context.getComponent("sftp", SftpComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("sftp:127.0.0.1?username=foo&password=secret");
-
- assertEquals("foo", conf.getParameter("username"));
- assertEquals("secret", conf.getParameter("password"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
- assertTrue(json.contains("\"download\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("sftp");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentationTest.java b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..342fc8e
--- /dev/null
+++ b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/SftpComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.file.remote;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+public class SftpComponentConfigurationAndDocumentationTest extends CamelTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ SftpComponent comp = context.getComponent("sftp", SftpComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("sftp:127.0.0.1?username=foo&password=secret");
+
+ assertEquals("foo", conf.getParameter("username"));
+ assertEquals("secret", conf.getParameter("password"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"maximumReconnectAttempts\": { \"type\": \"int\" }"));
+ assertTrue(json.contains("\"download\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("sftp");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentation.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 839992c..0000000
--- a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.jms;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.Test;
-
-public class JmsComponentConfigurationAndDocumentation extends CamelTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- JmsComponent comp = context.getComponent("jms", JmsComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("jms:queue:foo?replyTo=bar");
-
- assertEquals("bar", conf.getParameter("replyTo"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"replyToDestination\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"transacted\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("jms");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentationTest.java b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..942506b
--- /dev/null
+++ b/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jms;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+public class JmsComponentConfigurationAndDocumentationTest extends CamelTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ JmsComponent comp = context.getComponent("jms", JmsComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("jms:queue:foo?replyTo=bar");
+
+ assertEquals("bar", conf.getParameter("replyTo"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"replyToDestination\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"transacted\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("jms");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
[2/2] git commit: Renamed all the
XyzComponentConfigurationAndDocumentation test classes to
XyzComponentConfigurationAndDocumentationTest as otherwise surefire-plugin
would not run them at all while building.
Posted by bv...@apache.org.
Renamed all the XyzComponentConfigurationAndDocumentation test classes to XyzComponentConfigurationAndDocumentationTest as otherwise surefire-plugin would not run them at all while building.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e1b6ee23
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e1b6ee23
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e1b6ee23
Branch: refs/heads/master
Commit: e1b6ee2394a61d92082cac0145fcd618152776bb
Parents: 836e69a
Author: Babak Vahdat <bv...@apache.org>
Authored: Fri Feb 21 16:07:08 2014 +0100
Committer: Babak Vahdat <bv...@apache.org>
Committed: Fri Feb 21 16:07:08 2014 +0100
----------------------------------------------------------------------
...nComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...eComponentConfigurationAndDocumentation.java | 54 -------------------
...ponentConfigurationAndDocumentationTest.java | 54 +++++++++++++++++++
...sComponentConfigurationAndDocumentation.java | 56 --------------------
...ponentConfigurationAndDocumentationTest.java | 56 ++++++++++++++++++++
...tComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...tComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...tComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...mComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...eComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...eComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...gComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...kComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...aComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...tComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...rComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...tComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
...pComponentConfigurationAndDocumentation.java | 56 --------------------
...ponentConfigurationAndDocumentationTest.java | 56 ++++++++++++++++++++
...sComponentConfigurationAndDocumentation.java | 56 --------------------
...ponentConfigurationAndDocumentationTest.java | 56 ++++++++++++++++++++
...pComponentConfigurationAndDocumentation.java | 56 --------------------
...ponentConfigurationAndDocumentationTest.java | 56 ++++++++++++++++++++
...sComponentConfigurationAndDocumentation.java | 55 -------------------
...ponentConfigurationAndDocumentationTest.java | 55 +++++++++++++++++++
38 files changed, 1048 insertions(+), 1048 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 06e8bf0..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.bean;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class BeanComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- BeanComponent comp = context.getComponent("bean", BeanComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("bean:foo?method=bar");
-
- assertEquals("bar", conf.getParameter("method"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"method\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"cache\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("bean");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..e9cbf12
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/bean/BeanComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.bean;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class BeanComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ BeanComponent comp = context.getComponent("bean", BeanComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("bean:foo?method=bar");
+
+ assertEquals("bar", conf.getParameter("method"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"method\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"cache\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("bean");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentation.java
deleted file mode 100644
index e6ce688..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.browse;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class BrowseComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- BrowseComponent comp = context.getComponent("browse", BrowseComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("browse:seda:foo?synchronous=true");
-
- assertEquals("true", conf.getParameter("synchronous"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("browse");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..2f9d85c
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/browse/BrowseComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.browse;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class BrowseComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ BrowseComponent comp = context.getComponent("browse", BrowseComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("browse:seda:foo?synchronous=true");
+
+ assertEquals("true", conf.getParameter("synchronous"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("browse");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentation.java
deleted file mode 100644
index f08f66f..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.controlbus;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class ControlBusComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- ControlBusComponent comp = context.getComponent("controlbus", ControlBusComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("controlbus:route?routeId=bar&action=stop");
-
- assertEquals("bar", conf.getParameter("routeId"));
- assertEquals("stop", conf.getParameter("action"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"action\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"async\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("controlbus");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..62e521d
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/controlbus/ControlBusComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,56 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.controlbus;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class ControlBusComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ ControlBusComponent comp = context.getComponent("controlbus", ControlBusComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("controlbus:route?routeId=bar&action=stop");
+
+ assertEquals("bar", conf.getParameter("routeId"));
+ assertEquals("stop", conf.getParameter("action"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"action\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"async\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("controlbus");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 619524a..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.dataformat;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class DataFormatComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- DataFormatComponent comp = context.getComponent("dataformat", DataFormatComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("dataformaat:marshal:string?charset=iso-8859-1");
-
- assertEquals("iso-8859-1", conf.getParameter("charset"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"operation\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("dataformat");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..c2b5b7e
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/dataformat/DataFormatComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.dataformat;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class DataFormatComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ DataFormatComponent comp = context.getComponent("dataformat", DataFormatComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("dataformaat:marshal:string?charset=iso-8859-1");
+
+ assertEquals("iso-8859-1", conf.getParameter("charset"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"operation\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("dataformat");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 5bd53f1..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.dataset;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class DataSetComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- DataSetComponent comp = context.getComponent("dataset", DataSetComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("dataset:foo?minRate=3");
-
- assertEquals("3", conf.getParameter("minRate"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"preloadSize\": { \"type\": \"long\" }"));
- assertTrue(json.contains("\"minRate\": { \"type\": \"int\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("dataset");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..41eb4a9
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/dataset/DataSetComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.dataset;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class DataSetComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ DataSetComponent comp = context.getComponent("dataset", DataSetComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("dataset:foo?minRate=3");
+
+ assertEquals("3", conf.getParameter("minRate"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"preloadSize\": { \"type\": \"long\" }"));
+ assertTrue(json.contains("\"minRate\": { \"type\": \"int\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("dataset");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentation.java
deleted file mode 100644
index bd7d08e..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.direct;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class DirectComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- DirectComponent comp = context.getComponent("direct", DirectComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("direct:foo?block=true");
-
- assertEquals("true", conf.getParameter("block"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
- assertTrue(json.contains("\"block\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("direct");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..0ac0f7e
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/direct/DirectComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.direct;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class DirectComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ DirectComponent comp = context.getComponent("direct", DirectComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("direct:foo?block=true");
+
+ assertEquals("true", conf.getParameter("block"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
+ assertTrue(json.contains("\"block\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("direct");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentation.java
deleted file mode 100644
index fb7e117..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.directvm;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class DirectVmComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- DirectVmComponent comp = context.getComponent("direct-vm", DirectVmComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("direct-vm:foo?block=false");
-
- assertEquals("false", conf.getParameter("block"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
- assertTrue(json.contains("\"block\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("direct-vm");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..65966d0
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/directvm/DirectVmComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.directvm;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class DirectVmComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ DirectVmComponent comp = context.getComponent("direct-vm", DirectVmComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("direct-vm:foo?block=false");
+
+ assertEquals("false", conf.getParameter("block"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
+ assertTrue(json.contains("\"block\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("direct-vm");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 6afc373..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.file;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class FileComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- FileComponent comp = context.getComponent("file", FileComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("file:target/foo?delete=true");
-
- assertEquals("true", conf.getParameter("delete"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"exclude\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"delete\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("file");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..7cc4dc5
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/file/FileComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.file;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class FileComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ FileComponent comp = context.getComponent("file", FileComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("file:target/foo?delete=true");
+
+ assertEquals("true", conf.getParameter("delete"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"exclude\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"delete\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("file");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentation.java
deleted file mode 100644
index f90f420..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.language;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class LanguageComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- LanguageComponent comp = context.getComponent("language", LanguageComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("language:simple:foo?transform=false");
-
- assertEquals("false", conf.getParameter("transform"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"script\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"cacheScript\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("language");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..b2b1cf2
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/language/LanguageComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.language;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class LanguageComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ LanguageComponent comp = context.getComponent("language", LanguageComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("language:simple:foo?transform=false");
+
+ assertEquals("false", conf.getParameter("transform"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"script\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"cacheScript\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("language");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 3bbbd67..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.log;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class LogComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- LogComponent comp = context.getComponent("log", LogComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("log:foo?level=DEBUG");
-
- assertEquals("DEBUG", conf.getParameter("level"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"level\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"groupInterval\": { \"type\": \"java.lang.Long\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("log");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..e5760ce
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/log/LogComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.log;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class LogComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ LogComponent comp = context.getComponent("log", LogComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("log:foo?level=DEBUG");
+
+ assertEquals("DEBUG", conf.getParameter("level"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"level\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"groupInterval\": { \"type\": \"java.lang.Long\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("log");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 5602943..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.mock;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class MockComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- MockComponent comp = context.getComponent("mock", MockComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("mock:foo?retainFirst=10");
-
- assertEquals("10", conf.getParameter("retainFirst"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"expectedCount\": { \"type\": \"int\" }"));
- assertTrue(json.contains("\"retainFirst\": { \"type\": \"int\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("mock");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..6e4b0f5
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/mock/MockComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.mock;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class MockComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ MockComponent comp = context.getComponent("mock", MockComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("mock:foo?retainFirst=10");
+
+ assertEquals("10", conf.getParameter("retainFirst"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"expectedCount\": { \"type\": \"int\" }"));
+ assertTrue(json.contains("\"retainFirst\": { \"type\": \"int\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("mock");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentation.java
deleted file mode 100644
index e7f89a2..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.seda;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class SedaComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- SedaComponent comp = context.getComponent("seda", SedaComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("seda:foo?blockWhenFull=true");
-
- assertEquals("true", conf.getParameter("blockWhenFull"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
- assertTrue(json.contains("\"blockWhenFull\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("seda");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..4b06596
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/seda/SedaComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.seda;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class SedaComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ SedaComponent comp = context.getComponent("seda", SedaComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("seda:foo?blockWhenFull=true");
+
+ assertEquals("true", conf.getParameter("blockWhenFull"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
+ assertTrue(json.contains("\"blockWhenFull\": { \"type\": \"boolean\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("seda");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 431dfc4..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.test;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class TestComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- TestComponent comp = context.getComponent("test", TestComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("test:my:foo?timeout=1000");
-
- assertEquals("1000", conf.getParameter("timeout"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"retainFirst\": { \"type\": \"int\" }"));
- assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("test");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..46f4f82
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/test/TestComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.test;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class TestComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ TestComponent comp = context.getComponent("test", TestComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("test:my:foo?timeout=1000");
+
+ assertEquals("1000", conf.getParameter("timeout"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"retainFirst\": { \"type\": \"int\" }"));
+ assertTrue(json.contains("\"timeout\": { \"type\": \"long\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("test");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentation.java
deleted file mode 100644
index b78567f..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.timer;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class TimerComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- TimerComponent comp = context.getComponent("timer", TimerComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("timer:foo?period=2000");
-
- assertEquals("2000", conf.getParameter("period"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"timerName\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"delay\": { \"type\": \"long\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("timer");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentationTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentationTest.java b/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentationTest.java
new file mode 100644
index 0000000..40b9ad1
--- /dev/null
+++ b/camel-core/src/test/java/org/apache/camel/component/timer/TimerComponentConfigurationAndDocumentationTest.java
@@ -0,0 +1,55 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.timer;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.ComponentConfiguration;
+import org.apache.camel.ContextTestSupport;
+import org.apache.camel.EndpointConfiguration;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.Test;
+
+public class TimerComponentConfigurationAndDocumentationTest extends ContextTestSupport {
+
+ @Override
+ public boolean isUseRouteBuilder() {
+ return false;
+ }
+
+ @Test
+ public void testComponentConfiguration() throws Exception {
+ TimerComponent comp = context.getComponent("timer", TimerComponent.class);
+ EndpointConfiguration conf = comp.createConfiguration("timer:foo?period=2000");
+
+ assertEquals("2000", conf.getParameter("period"));
+
+ ComponentConfiguration compConf = comp.createComponentConfiguration();
+ String json = compConf.createParameterJsonSchema();
+ assertNotNull(json);
+
+ assertTrue(json.contains("\"timerName\": { \"type\": \"java.lang.String\" }"));
+ assertTrue(json.contains("\"delay\": { \"type\": \"long\" }"));
+ }
+
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("timer");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/camel/blob/e1b6ee23/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentation.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentation.java b/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentation.java
deleted file mode 100644
index 98e4ce4..0000000
--- a/camel-core/src/test/java/org/apache/camel/component/xslt/XsltComponentConfigurationAndDocumentation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.component.xslt;
-
-import org.apache.camel.CamelContext;
-import org.apache.camel.ComponentConfiguration;
-import org.apache.camel.ContextTestSupport;
-import org.apache.camel.EndpointConfiguration;
-import org.apache.camel.impl.DefaultCamelContext;
-import org.junit.Test;
-
-public class XsltComponentConfigurationAndDocumentation extends ContextTestSupport {
-
- @Override
- public boolean isUseRouteBuilder() {
- return false;
- }
-
- @Test
- public void testComponentConfiguration() throws Exception {
- XsltComponent comp = context.getComponent("xslt", XsltComponent.class);
- EndpointConfiguration conf = comp.createConfiguration("xslt:foo?deleteOutputFile=true");
-
- assertEquals("true", conf.getParameter("deleteOutputFile"));
-
- ComponentConfiguration compConf = comp.createComponentConfiguration();
- String json = compConf.createParameterJsonSchema();
- assertNotNull(json);
-
- assertTrue(json.contains("\"resourceUri\": { \"type\": \"java.lang.String\" }"));
- assertTrue(json.contains("\"synchronous\": { \"type\": \"boolean\" }"));
- }
-
- @Test
- public void testComponentDocumentation() throws Exception {
- CamelContext context = new DefaultCamelContext();
- String html = context.getComponentDocumentation("xslt");
- assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
- }
-
-}