Skip to content

Commit

Permalink
re-added createTestDescription(Class, String), and fixed javadoc comm…
Browse files Browse the repository at this point in the history
…ent that had ended up in the wrong place
  • Loading branch information
Petter Måhlén committed Aug 3, 2012
1 parent 1c545fd commit 303d2e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/junit/runner/Description.java
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 303d2e6

Please sign in to comment.