camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [31/33] camel git commit: Camel component docs. Fixed test after adding group into the docs.
Date Thu, 12 Nov 2015 08:18:42 GMT
Camel component docs. Fixed test after adding group into the docs.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/81282af7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/81282af7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/81282af7

Branch: refs/heads/camel-2.16.x
Commit: 81282af752b08460a1a587602f2331569392c0b1
Parents: 7e6c745
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Nov 12 09:01:57 2015 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Nov 12 09:21:23 2015 +0100

----------------------------------------------------------------------
 .../org/apache/camel/component/dataset/DataSetEndpoint.java    | 6 +++---
 .../java/org/apache/camel/component/test/TestEndpoint.java     | 2 +-
 .../DataSetComponentConfigurationAndDocumentationTest.java     | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/81282af7/camel-core/src/main/java/org/apache/camel/component/dataset/DataSetEndpoint.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/dataset/DataSetEndpoint.java
b/camel-core/src/main/java/org/apache/camel/component/dataset/DataSetEndpoint.java
index 1847836..129196c 100644
--- a/camel-core/src/main/java/org/apache/camel/component/dataset/DataSetEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/dataset/DataSetEndpoint.java
@@ -48,13 +48,13 @@ public class DataSetEndpoint extends MockEndpoint implements Service {
     private final AtomicInteger receivedCounter = new AtomicInteger();
     @UriPath(name = "name", description = "Name of DataSet to lookup in the registry") @Metadata(required
= "true")
     private volatile DataSet dataSet;
-    @UriParam(label = "consuner", defaultValue = "0")
+    @UriParam(label = "consumer", defaultValue = "0")
     private int minRate;
-    @UriParam(label = "consuner", defaultValue = "3")
+    @UriParam(label = "consumer", defaultValue = "3")
     private long produceDelay = 3;
     @UriParam(label = "producer", defaultValue = "0")
     private long consumeDelay;
-    @UriParam(label = "consuner", defaultValue = "0")
+    @UriParam(label = "consumer", defaultValue = "0")
     private long preloadSize;
     @UriParam(label = "consumer", defaultValue = "1000")
     private long initialDelay = 1000;

http://git-wip-us.apache.org/repos/asf/camel/blob/81282af7/camel-core/src/main/java/org/apache/camel/component/test/TestEndpoint.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/component/test/TestEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/test/TestEndpoint.java
index 6ad340b..a61efd1 100644
--- a/camel-core/src/main/java/org/apache/camel/component/test/TestEndpoint.java
+++ b/camel-core/src/main/java/org/apache/camel/component/test/TestEndpoint.java
@@ -45,7 +45,7 @@ public class TestEndpoint extends MockEndpoint {
     private final Endpoint expectedMessageEndpoint;
     @UriPath(description = "Name of endpoint to lookup in the registry to use for polling
messages used for testing") @Metadata(required = "true")
     private String name;
-    @UriParam(defaultValue = "2000")
+    @UriParam(label = "producer", defaultValue = "2000")
     private long timeout = 2000L;
 
     public TestEndpoint(String endpointUri, Component component, Endpoint expectedMessageEndpoint)
{

http://git-wip-us.apache.org/repos/asf/camel/blob/81282af7/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
index 9a893d8..f0e0ecf 100644
--- 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
@@ -42,7 +42,7 @@ public class DataSetComponentConfigurationAndDocumentationTest extends ContextTe
         assertNotNull(json);
 
         assertTrue(json.contains("\"name\": { \"kind\": \"path\", \"group\": \"common\",
\"required\": \"true\", \"type\""));
-        assertTrue(json.contains("\"kind\": \"parameter\", \"group\": \"consuner\", \"label\":
\"consuner\", \"type\": \"integer\""));
+        assertTrue(json.contains("\"kind\": \"parameter\", \"group\": \"consumer\", \"label\":
\"consumer\", \"type\": \"integer\""));
         assertTrue(json.contains("\"retainFirst\": { \"kind\": \"parameter\", \"group\":
\"producer\", \"label\": \"producer\", \"type\": \"integer"));
     }
 


Mime
View raw message