CAMEL-8541: camel-test CDI compliant
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/33952117 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/33952117 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/33952117 Branch: refs/heads/camel-2.14.x Commit: 3395211792bd7466d624f571970ece4718fb9e75 Parents: eb0feec Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Mar 25 07:48:03 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Mar 25 07:49:04 2015 +0100 ---------------------------------------------------------------------- .../org/apache/camel/test/junit4/TestSupport.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/33952117/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java ---------------------------------------------------------------------- diff --git a/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java b/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java index d574f60..0a51a7f 100644 --- a/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java +++ b/components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java @@ -55,10 +55,7 @@ public abstract class TestSupport extends Assert { private static final Logger LOG = LoggerFactory.getLogger(TestSupport.class); protected Logger log = LoggerFactory.getLogger(getClass()); - // CHECKSTYLE:OFF - @Rule - public TestName testName = new TestName(); - // CHECKSTYLE:ON + private TestName testName = new TestName(); // Builder methods for expressions used when testing // ------------------------------------------------------------------------- @@ -567,6 +564,16 @@ public abstract class TestSupport extends Assert { } /** + * Gets the current test name + * + * @return the test name + */ + @Rule + public TestName getTestName() { + return testName; + } + + /** * Gets the current test method name * * @return the method name