Browse files

changed back to using Serializable as the necessary Gherkin change ha…

…s been made
  • Loading branch information...
1 parent accece2 commit 2e699926f4e8c79407338e5973ec198bd3844212 Petter Måhlén committed Jun 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/org/junit/runner/
@@ -87,7 +87,7 @@ public static Description createTestDescription(Class<?> clazz, String name, Ann
* @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(String className, String name, Object uniqueId) {
+ public static Description createTestDescription(String className, String name, Serializable uniqueId) {
return new Description(String.format("%s(%s)", name, className), uniqueId);
@@ -114,14 +114,14 @@ public static Description createSuiteDescription(Class<?> testClass) {
private final ArrayList<Description> fChildren= new ArrayList<Description>();
private final String fDisplayName;
- private final Object fUniqueId;
+ private final Serializable fUniqueId;
private final Annotation[] fAnnotations;
private Description(String displayName, Annotation... annotations) {
this(displayName, displayName, annotations);
- private Description(String displayName, Object uniqueId, Annotation... annotations) {
+ private Description(String displayName, Serializable uniqueId, Annotation... annotations) {
if ((displayName == null) || (displayName.length() == 0))
throw new IllegalArgumentException(
"The display name must not be empty.");

0 comments on commit 2e69992

Please sign in to comment.