org.databene.contiperf.junit
Class ContiPerfRule

java.lang.Object
  extended by org.databene.contiperf.junit.ContiPerfRule
All Implemented Interfaces:
org.junit.rules.MethodRule

public class ContiPerfRule
extends Object
implements org.junit.rules.MethodRule

Implements the JUnit MethodRule interface for adding performance test features to test calls.

for activating it, add an attribute of this class to your test class, e.g.:

 public class SimpleTest {

Since:
1.0
Author:
Volker Bergmann

Constructor Summary
  ContiPerfRule()
           
  ContiPerfRule(ExecutionLogger logger)
           
protected ContiPerfRule(ReportContext context)
           
protected ContiPerfRule(ReportContext context, Object suite)
           
  ContiPerfRule(ReportModule... modules)
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)
           
static ExecutionConfig configurePerfTest(PerfTest annotation, String testId)
           
static ContiPerfRule createDefaultRule()
           
static ContiPerfRule createVerboseRule()
           
 ReportContext getContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContiPerfRule

public ContiPerfRule()

ContiPerfRule

public ContiPerfRule(ExecutionLogger logger)

ContiPerfRule

public ContiPerfRule(ReportModule... modules)

ContiPerfRule

protected ContiPerfRule(ReportContext context)

ContiPerfRule

protected ContiPerfRule(ReportContext context,
                        Object suite)
Method Detail

createDefaultRule

public static ContiPerfRule createDefaultRule()

createVerboseRule

public static ContiPerfRule createVerboseRule()

apply

public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
                                               org.junit.runners.model.FrameworkMethod method,
                                               Object target)
Specified by:
apply in interface org.junit.rules.MethodRule

getContext

public ReportContext getContext()

configurePerfTest

public static ExecutionConfig configurePerfTest(PerfTest annotation,
                                                String testId)


Copyright © 2013. All Rights Reserved.