You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/03/25 07:47:14 UTC
[3/3] camel git commit: CAMEL-8541: camel-test CDI compliant
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/5b80cceb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/5b80cceb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/5b80cceb
Branch: refs/heads/camel-2.15.x
Commit: 5b80cceb96b8081bedba6c51ea6e875eca8e4eb2
Parents: 38beadc
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Mar 25 07:48:03 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Mar 25 07:49:12 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/5b80cceb/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