Browse files

re-added createTestDescription(Class, String), and fixed javadoc comm…

…ent that had ended up in the wrong place
  • Loading branch information...
1 parent 1c545fd commit 303d2e64aa53a6563e57ecb3d1a6e84bdcfb28c3 Petter Måhlén committed Aug 3, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/main/java/org/junit/runner/Description.java
View
11 src/main/java/org/junit/runner/Description.java
@@ -83,6 +83,17 @@ public static Description createTestDescription(Class<?> clazz, String name, Ann
* Create a <code>Description</code> of a single test named <code>name</code> in the class <code>clazz</code>.
* Generally, this will be a leaf <code>Description</code>.
* (This remains for binary compatibility with clients of JUnit 4.3)
+ * @param clazz the class of the test
+ * @param name the name of the test (a method name for test annotated with {@link org.junit.Test})
+ * @return a <code>Description</code> named <code>name</code>
+ */
+ public static Description createTestDescription(Class<?> clazz, String name) {
+ return createTestDescription(clazz.getName(), name);
+ }
+
+ /**
+ * Create a <code>Description</code> of a single test named <code>name</code> in the class <code>clazz</code>.
+ * Generally, this will be a leaf <code>Description</code>.
*
* @param name the name of the test (a method name for test annotated with {@link org.junit.Test})
* @return a <code>Description</code> named <code>name</code>

0 comments on commit 303d2e6

Please sign in to comment.