Package com.carrotsearch.randomizedtesting.annotations

Examples of com.carrotsearch.randomizedtesting.annotations.TestGroup


  /**
   * Return {@link TestGroup}'s name assigned to a given annotation.
   */
  public static String getGroupName(Class<? extends Annotation> annotationClass) {
    TestGroup testGroup = annotationClass.getAnnotation(TestGroup.class);
    if (testGroup == null)
      throw new IllegalArgumentException("Annotation must have a @TestGroup annotation: "
          + annotationClass);

    String tmp = RandomizedRunner.emptyToNull(testGroup.name());
    return tmp == null ? annotationClass.getSimpleName().toLowerCase() : tmp;
  }
View Full Code Here


  /**
   * Return {@link TestGroup}'s system property assigned to a given annotation.
   */
  public static String getGroupSysProperty(Class<? extends Annotation> annotationClass) {
    TestGroup testGroup = annotationClass.getAnnotation(TestGroup.class);

    String tmp = RandomizedRunner.emptyToNull(testGroup.sysProperty());
    return (tmp == null ? "tests." + getGroupName(annotationClass) : tmp);
 
View Full Code Here

  /**
   * Return {@link TestGroup}'s name assigned to a given annotation.
   */
  public static String getGroupName(Class<? extends Annotation> annotationClass) {
    TestGroup testGroup = annotationClass.getAnnotation(TestGroup.class);
    if (testGroup == null)
      throw new IllegalArgumentException("Annotation must have a @TestGroup annotation: "
          + annotationClass);

    String tmp = RandomizedRunner.emptyToNull(testGroup.name());
    return tmp == null ? annotationClass.getSimpleName().toLowerCase() : tmp;
  }
View Full Code Here

  /**
   * Return {@link TestGroup}'s system property assigned to a given annotation.
   */
  public static String getGroupSysProperty(Class<? extends Annotation> annotationClass) {
    TestGroup testGroup = annotationClass.getAnnotation(TestGroup.class);

    String tmp = RandomizedRunner.emptyToNull(testGroup.sysProperty());
    return (tmp != null ? tmp : SysGlobals.prefixProperty(getGroupName(annotationClass)));
  }
View Full Code Here

TOP

Related Classes of com.carrotsearch.randomizedtesting.annotations.TestGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.