gpt4 book ai didi

com.googlecode.zohhak.api.runners.ZohhakRunner类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:28:40 26 4
gpt4 key购买 nike

本文整理了Java中com.googlecode.zohhak.api.runners.ZohhakRunner类的一些代码示例,展示了ZohhakRunner类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZohhakRunner类的具体详情如下:
包路径:com.googlecode.zohhak.api.runners.ZohhakRunner
类名称:ZohhakRunner

ZohhakRunner介绍

[英]Compatible with JUnit 4.5 - 4.10
[中]与JUnit 4.5-4.10兼容

代码示例

代码示例来源:origin: piotrturski/zohhak

@Override
public Description getDescription() {
  Description description = Description.createSuiteDescription(getTestClass().getName(), getRunnerAnnotations());
  for (FrameworkMethod child : getClassChildrenToDescribe(getTestClass(), super.computeTestMethods())) {
    description.addChild(describeMethod(child));
  }
  return description;
}

代码示例来源:origin: io.github.theangrydev/zohhak

/**
 * ParrentRunner.getRunnerAnnotations() was introduced in junit 4.10
 * for earlier versions this method must be manually defined
 * 
 * @since 1.0.1
 */
protected Annotation[] getRunnerAnnotations() {
  return getTestClass().getAnnotations();
}

代码示例来源:origin: piotrturski/zohhak

/**
 * ParrentRunner.getRunnerAnnotations() was introduced in junit 4.10
 * for earlier versions this method must be manually defined
 * 
 * @since 1.0.1
 */
protected Annotation[] getRunnerAnnotations() {
  return getTestClass().getAnnotations();
}

代码示例来源:origin: io.github.theangrydev/zohhak

@Override
public Description getDescription() {
  Description description = Description.createSuiteDescription(getTestClass().getName(), getRunnerAnnotations());
  for (FrameworkMethod child : getClassChildrenToDescribe(getTestClass(), super.computeTestMethods())) {
    description.addChild(describeMethod(child));
  }
  return description;
}

代码示例来源:origin: io.github.theangrydev/zohhak

/**
 * all methods that should be run. only leaves
 */
@Override
protected List<FrameworkMethod> computeTestMethods() {
  if (cachedMethods == null) {
    cachedMethods = new RunnerDelegator().computeAllTestMethods(getTestClass(), super.computeTestMethods());
  }
  return cachedMethods;
}

代码示例来源:origin: piotrturski/zohhak

/**
 * all methods that should be run. only leaves
 */
@Override
protected List<FrameworkMethod> computeTestMethods() {
  if (cachedMethods == null) {
    cachedMethods = new RunnerDelegator().computeAllTestMethods(getTestClass(), super.computeTestMethods());
  }
  return cachedMethods;
}

代码示例来源:origin: io.github.theangrydev/zohhak

@Override
protected Description describeChild(FrameworkMethod method) {
  return isParameterized(method) ? describeSingleInvocationOfParametrizedMethod(method, getTestClass()) : super.describeChild(method);
}

代码示例来源:origin: piotrturski/zohhak

private Description describeMethod(FrameworkMethod method) {
    return isParameterized(method) ? describeParametrizedMethodWithChildren(method, getTestClass()) : super.describeChild(method);
  }
}

代码示例来源:origin: io.github.theangrydev/zohhak

private Description describeMethod(FrameworkMethod method) {
    return isParameterized(method) ? describeParametrizedMethodWithChildren(method, getTestClass()) : super.describeChild(method);
  }
}

代码示例来源:origin: piotrturski/zohhak

@Override
protected Description describeChild(FrameworkMethod method) {
  return isParameterized(method) ? describeSingleInvocationOfParametrizedMethod(method, getTestClass()) : super.describeChild(method);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com