本文整理汇总了Java中org.databene.contiperf.report.ReportContext类的典型用法代码示例。如果您正苦于以下问题:Java ReportContext类的具体用法?Java ReportContext怎么用?Java ReportContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ReportContext类属于org.databene.contiperf.report包,在下文中一共展示了ReportContext类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ContiPerfRule
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
protected ContiPerfRule(ReportContext context, Object suite) {
if (context == null) {
this.context = JUnitReportContext.createInstance(suite);
} else {
this.context = context;
}
if (suite != null) {
Class<? extends Object> suiteClass = suite.getClass();
this.defaultExecutionConfig = configurePerfTest(
ContiPerfUtil.annotationOfClass(suiteClass, PerfTest.class),
suiteClass.getName());
this.defaultRequirements = ContiPerfUtil.mapRequired(ContiPerfUtil
.annotationOfClass(suiteClass, Required.class));
}
}
示例2: createVerboseRule
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public static ContiPerfRule createVerboseRule() {
ReportContext context = new JUnitReportContext();
context.addReportModule(new HtmlReportModule());
context.addReportModule(new LoggerModuleAdapter(
new ConsoleExecutionLogger()));
return new ContiPerfRule(context);
}
示例3: createReportContext
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
private static ReportContext createReportContext(ReportModule... modules) {
ReportContext context = new JUnitReportContext();
for (ReportModule module : modules) {
context.addReportModule(module);
}
return context;
}
示例4: PerfTestStatement
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
PerfTestStatement(Statement base, String id, ExecutionConfig config,
PerformanceRequirement requirement, ReportContext context) {
this.base = base;
this.id = id;
this.config = config;
this.requirement = requirement;
this.context = context;
}
示例5: PerformanceTracker
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public PerformanceTracker(Invoker target, ExecutionConfig executionConfig,
PerformanceRequirement requirement, ReportContext context,
Clock[] clocks) {
super(target);
this.executionConfig = (executionConfig != null ? executionConfig
: new ExecutionConfig(0));
this.requirement = requirement;
this.setContext(context);
this.clocks = clocks;
this.counters = null;
this.trackingStarted = false;
this.warmUpFinishedTime = -1;
}
示例6: createDefaultReportContext
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public ReportContext createDefaultReportContext(
Class<? extends AssertionError> failureClass) {
File reportFolder = getReportFolder();
ReportContext context = new ReportContext(reportFolder, failureClass);
context.addReportModule(new HtmlReportModule());
return context;
}
示例7: ContiPerfRuleAdaptor
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
protected ContiPerfRuleAdaptor(ReportContext context) {
super(context);
}
示例8: createDefaultRule
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public static ContiPerfRule createDefaultRule() {
ReportContext context = new JUnitReportContext();
context.addReportModule(new HtmlReportModule());
return new ContiPerfRule(context);
}
示例9: getContext
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public ReportContext getContext() {
return context;
}
示例10: setContext
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
void setContext(ReportContext context) {
this.context = context;
}
示例11: setContext
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public void setContext(ReportContext context) {
this.context = context;
}
示例12: setContext
import org.databene.contiperf.report.ReportContext; //导入依赖的package包/类
public void setContext(ReportContext context) {
this.context = context;
}