You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2014/02/12 17:01:23 UTC
[2/2] git commit: Added test
Added test
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/bc73f1d9
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/bc73f1d9
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/bc73f1d9
Branch: refs/heads/master
Commit: bc73f1d9a7819fd393ef2155f95504add79ba8c3
Parents: 7af4a26
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Feb 12 17:02:43 2014 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Feb 12 17:02:43 2014 +0100
----------------------------------------------------------------------
.../camel/component/twitter/UriConfigurationTest.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/bc73f1d9/components/camel-twitter/src/test/java/org/apache/camel/component/twitter/UriConfigurationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-twitter/src/test/java/org/apache/camel/component/twitter/UriConfigurationTest.java b/components/camel-twitter/src/test/java/org/apache/camel/component/twitter/UriConfigurationTest.java
index 144a730..32edd06 100644
--- a/components/camel-twitter/src/test/java/org/apache/camel/component/twitter/UriConfigurationTest.java
+++ b/components/camel-twitter/src/test/java/org/apache/camel/component/twitter/UriConfigurationTest.java
@@ -21,6 +21,7 @@ import org.apache.camel.ComponentConfiguration;
import org.apache.camel.Endpoint;
import org.apache.camel.EndpointConfiguration;
import org.apache.camel.impl.DefaultCamelContext;
+import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Assert;
import org.junit.Test;
@@ -88,4 +89,16 @@ public class UriConfigurationTest extends Assert {
assertTrue(json.contains("\"consumerKey\": { \"type\": \"java.lang.String\" }"));
}
+ @Test
+ public void testComponentDocumentation() throws Exception {
+ // cannot be tested on java 1.6
+ if (CamelTestSupport.isJava16()) {
+ return;
+ }
+
+ CamelContext context = new DefaultCamelContext();
+ String html = context.getComponentDocumentation("twitter");
+ assertNotNull("Should have found some auto-generated HTML if on Java 7", html);
+ }
+
}