You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2017/03/31 07:36:59 UTC
[1/2] camel git commit: Fix ComponentVerifierTest
Repository: camel
Updated Branches:
refs/heads/master 8380cdfe9 -> c54509df5
Fix ComponentVerifierTest
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6806bd73
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6806bd73
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6806bd73
Branch: refs/heads/master
Commit: 6806bd73d769613caea18a44d869e154f34cf700
Parents: 8380cdf
Author: lburgazzoli <lb...@gmail.com>
Authored: Fri Mar 31 06:58:14 2017 +0200
Committer: lburgazzoli <lb...@gmail.com>
Committed: Fri Mar 31 09:36:38 2017 +0200
----------------------------------------------------------------------
.../org/apache/camel/ComponentVerifierHelper.java | 4 ++--
.../org/apache/camel/ComponentVerifierTest.java | 18 ------------------
2 files changed, 2 insertions(+), 20 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/6806bd73/camel-core/src/main/java/org/apache/camel/ComponentVerifierHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/ComponentVerifierHelper.java b/camel-core/src/main/java/org/apache/camel/ComponentVerifierHelper.java
index 7be03d4..7fc8115 100644
--- a/camel-core/src/main/java/org/apache/camel/ComponentVerifierHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/ComponentVerifierHelper.java
@@ -30,7 +30,7 @@ class ComponentVerifierHelper {
*/
static class ErrorCode implements Code {
- private String name;
+ private final String name;
ErrorCode(String name) {
if (name == null) {
@@ -71,7 +71,7 @@ class ComponentVerifierHelper {
static class ErrorAttribute implements Attribute {
- private String name;
+ private final String name;
ErrorAttribute(String name) {
if (name == null) {
http://git-wip-us.apache.org/repos/asf/camel/blob/6806bd73/camel-core/src/test/java/org/apache/camel/ComponentVerifierTest.java
----------------------------------------------------------------------
diff --git a/camel-core/src/test/java/org/apache/camel/ComponentVerifierTest.java b/camel-core/src/test/java/org/apache/camel/ComponentVerifierTest.java
index 5173053..2eb944c 100644
--- a/camel-core/src/test/java/org/apache/camel/ComponentVerifierTest.java
+++ b/camel-core/src/test/java/org/apache/camel/ComponentVerifierTest.java
@@ -36,24 +36,6 @@ public class ComponentVerifierTest extends TestCase {
Assert.assertNull(error.getDetail(VerificationError.asAttribute("test_attr_non_existant")));
}
- public void testInvalidAttribute() {
- try {
- VerificationError.asAttribute("HTTP_CODE");
- fail();
- } catch (IllegalArgumentException exp) {
- Assert.assertTrue(exp.getMessage().contains("HTTP_CODE"));
- }
- }
-
- public void testInvalidCode() {
- try {
- VerificationError.asCode("Authentication");
- fail();
- } catch (IllegalArgumentException exp) {
- Assert.assertTrue(exp.getMessage().contains("Authentication"));
- }
- }
-
public void testNullCode() {
try {
VerificationError.asCode(null);
[2/2] camel git commit: Fix build
Posted by lb...@apache.org.
Fix build
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/c54509df
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/c54509df
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/c54509df
Branch: refs/heads/master
Commit: c54509df553933ffa641dddbb6d7929031f3c6a7
Parents: 6806bd7
Author: lburgazzoli <lb...@gmail.com>
Authored: Fri Mar 31 09:02:27 2017 +0200
Committer: lburgazzoli <lb...@gmail.com>
Committed: Fri Mar 31 09:36:39 2017 +0200
----------------------------------------------------------------------
camel-core/pom.xml | 6 ------
1 file changed, 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/c54509df/camel-core/pom.xml
----------------------------------------------------------------------
diff --git a/camel-core/pom.xml b/camel-core/pom.xml
index ac5a673..cb59966 100644
--- a/camel-core/pom.xml
+++ b/camel-core/pom.xml
@@ -196,12 +196,6 @@
<version>${xml-resolver-version}</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>com.consol.citrus</groupId>
- <artifactId>citrus-core</artifactId>
- <version>2.7.1</version>
- <scope>test</scope>
- </dependency>
</dependencies>