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 java.lang.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

Field Summary
protected  boolean configuredExecutionLogger
           
protected  ExecutionLogger executionLogger
           
 
Constructor Summary
ContiPerfRule()
           
ContiPerfRule(ExecutionLogger executionLogger)
           
ContiPerfRule(ExecutionLogger executionLogger, java.lang.Object suite)
           
 
Method Summary
 org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, java.lang.Object target)
           
static ExecutionConfig configurePerfTest(PerfTest annotation, java.lang.String testId)
           
 ExecutionLogger getExecutionLogger()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executionLogger

protected ExecutionLogger executionLogger

configuredExecutionLogger

protected final boolean configuredExecutionLogger
Constructor Detail

ContiPerfRule

public ContiPerfRule()

ContiPerfRule

public ContiPerfRule(ExecutionLogger executionLogger)

ContiPerfRule

public ContiPerfRule(ExecutionLogger executionLogger,
                     java.lang.Object suite)
Method Detail

apply

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

getExecutionLogger

public ExecutionLogger getExecutionLogger()

configurePerfTest

public static ExecutionConfig configurePerfTest(PerfTest annotation,
                                                java.lang.String testId)


Copyright © 2010. All Rights Reserved.