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 <lburgazz...@gmail.com> Authored: Fri Mar 31 06:58:14 2017 +0200 Committer: lburgazzoli <lburgazz...@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);