Package org.jtester.annotations

Examples of org.jtester.annotations.DbFit.when()


   * @param testClazz
   * @return
   */
  public static String[] autoFindClassWhen(Class testClazz) {
    DbFit dbFit = AnnotationUtils.getClassLevelAnnotation(DbFit.class, testClazz);
    List<String> whens = getFiles(dbFit == null ? null : dbFit.when());
    if (dbFit != null && dbFit.auto() == AUTO.UN_AUTO) {
      return whens.toArray(new String[0]);
    } else {
      String wiki = String.format(CLAZZ_WHEN_WIKI, testClazz.getSimpleName());
      if (whens.contains(wiki) == false && ResourceHelper.isResourceExists(testClazz, wiki)) {
View Full Code Here


   */
  public static String[] autoFindMethodWhen(Class testClazz, Method testMethod) {
    boolean isAutoFind = isAutoFind(testClazz, testMethod);

    DbFit dbFit = testMethod.getAnnotation(DbFit.class);
    List<String> whens = getFiles(dbFit == null ? null : dbFit.when());
    if (isAutoFind == false) {
      return whens.toArray(new String[0]);
    } else {
      String wiki = String.format(METHOD_WHEN_WIKI, testClazz.getSimpleName(), testMethod.getName());
      if (whens.contains(wiki) == false && ResourceHelper.isResourceExists(testClazz, wiki)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.