/** * Create a <code>Description</code> named <code>name</code>. * Generally, you will add children to this <code>Description</code>. * * @param name the name of the <code>Description</code> * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createSuiteDescription(String name, Annotation... annotations) { return new Description(null, name, annotations); }
/** * Create a <code>Description</code> named <code>name</code>. * Generally, you will add children to this <code>Description</code>. * * @param name the name of the <code>Description</code> * @param uniqueId an arbitrary object used to define uniqueness (in {@link #equals(Object)} * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createSuiteDescription(String name, Serializable uniqueId, Annotation... annotations) { return new Description(null, name, uniqueId, annotations); }
/** * @return a copy of this description, with no children (on the assumption that some of the * children will be added back) */ public Description childlessCopy() { return new Description(fTestClass, fDisplayName, fAnnotations); }
/** * Create a <code>Description</code> named <code>name</code>. * Generally, you will add children to this <code>Description</code>. * * @param name the name of the <code>Description</code> * @param uniqueId an arbitrary object used to define uniqueness (in {@link #equals(Object)} * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createSuiteDescription(String name, Serializable uniqueId, Annotation... annotations) { return new Description(null, name, uniqueId, annotations); }
/** * @return a copy of this description, with no children (on the assumption that some of the * children will be added back) */ public Description childlessCopy() { return new Description(fTestClass, fDisplayName, fAnnotations); }
/** * Create a <code>Description</code> named <code>name</code>. * Generally, you will add children to this <code>Description</code>. * * @param name the name of the <code>Description</code> * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createSuiteDescription(String name, Annotation... annotations) { return new Description(null, name, annotations); }
/** * Create a <code>Description</code> named after <code>testClass</code> * * @param testClass A not null {@link Class} containing tests * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> of <code>testClass</code> */ public static Description createSuiteDescription(Class<?> testClass, Annotation... annotations) { return new Description(testClass, testClass.getName(), annotations); }
/** * Create a <code>Description</code> named after <code>testClass</code> * * @param testClass A {@link Class} containing tests * @return a <code>Description</code> of <code>testClass</code> */ public static Description createSuiteDescription(Class<?> testClass) { return new Description(testClass, testClass.getName(), testClass.getAnnotations()); }
/** * Create a <code>Description</code> named after <code>testClass</code> * * @param testClass A {@link Class} containing tests * @return a <code>Description</code> of <code>testClass</code> */ public static Description createSuiteDescription(Class<?> testClass) { return new Description(testClass, testClass.getName(), testClass.getAnnotations()); }
/** * 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 clazz the class of the test * @param name the name of the test (a method name for test annotated with {@link org.junit.Test}) * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createTestDescription(Class<?> clazz, String name, Annotation... annotations) { return new Description(clazz, formatDisplayName(name, clazz.getName()), annotations); }
/** * 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 new Description(clazz, formatDisplayName(name, clazz.getName())); }
/** * 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> */ public static Description createTestDescription(String className, String name, Serializable uniqueId) { return new Description(null, formatDisplayName(name, className), uniqueId); }
/** * 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> */ public static Description createTestDescription(String className, String name, Serializable uniqueId) { return new Description(null, formatDisplayName(name, className), uniqueId); }
/** * 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 new Description(clazz, formatDisplayName(name, clazz.getName())); }
/** * 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 clazz the class of the test * @param name the name of the test (a method name for test annotated with {@link org.junit.Test}) * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createTestDescription(Class<?> clazz, String name, Annotation... annotations) { return new Description(clazz, formatDisplayName(name, clazz.getName()), annotations); }
/** * Create a <code>Description</code> of a single test named <code>name</code> in the 'class' named * <code>className</code>. Generally, this will be a leaf <code>Description</code>. This method is a better choice * than {@link #createTestDescription(Class, String, Annotation...)} for test runners whose test cases are not * defined in an actual Java <code>Class</code>. * * @param className the class name of the test * @param name the name of the test (a method name for test annotated with {@link org.junit.Test}) * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createTestDescription(String className, String name, Annotation... annotations) { return new Description(null, formatDisplayName(name, className), annotations); }
/** * Create a <code>Description</code> of a single test named <code>name</code> in the 'class' named * <code>className</code>. Generally, this will be a leaf <code>Description</code>. This method is a better choice * than {@link #createTestDescription(Class, String, Annotation...)} for test runners whose test cases are not * defined in an actual Java <code>Class</code>. * * @param className the class name of the test * @param name the name of the test (a method name for test annotated with {@link org.junit.Test}) * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createTestDescription(String className, String name, Annotation... annotations) { return new Description(null, formatDisplayName(name, className), annotations); }
/** * @return a copy of this description, with no children (on the assumption that some of the * children will be added back) */ public Description childlessCopy() { return new Description(fTestClass, fDisplayName, fAnnotations); }
/** * 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 clazz the class of the test * @param name the name of the test (a method name for test annotated with {@link org.junit.Test}) * @param annotations meta-data about the test, for downstream interpreters * @return a <code>Description</code> named <code>name</code> */ public static Description createTestDescription(Class<?> clazz, String name, Annotation... annotations) { return new Description(clazz, formatDisplayName(name, clazz.getName()), annotations); }
/** * 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 new Description(clazz, formatDisplayName(name, clazz.getName())); }