Repository: camel Updated Branches: refs/heads/camel-2.14.x eb0feec45 -> 339521179 refs/heads/camel-2.15.x 38beadc19 -> 5b80cceb9 refs/heads/master e83d342f6 -> 7584d4c9c
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/7584d4c9 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7584d4c9 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7584d4c9 Branch: refs/heads/master Commit: 7584d4c9c59627a5b5d302b0a402685cfe410ecf Parents: e83d342 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:48:03 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/7584d4c9/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 0df328a..caf7ce1 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 // ------------------------------------------------------------------------- @@ -575,6 +572,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