org.rhq.helpers.perftest.support.testng
Class DatabaseSetupInterceptor

java.lang.Object
  extended by org.rhq.helpers.perftest.support.testng.DatabaseSetupInterceptor
All Implemented Interfaces:
org.testng.IInvokedMethodListener, org.testng.ITestNGListener

public class DatabaseSetupInterceptor
extends Object
implements org.testng.IInvokedMethodListener

An method listener that performs the database setup for appropriately annotated test methods. To add database setup support to a test class, annotate the class with @Listeners({org.rhq.helpers.perftest.support.testng.DatabaseSetupInterceptor.class})

Author:
Lukas Krejci, Heiko W. Rupp

Constructor Summary
DatabaseSetupInterceptor()
           
 
Method Summary
 void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)
           
 void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult testResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseSetupInterceptor

public DatabaseSetupInterceptor()
Method Detail

beforeInvocation

public void beforeInvocation(org.testng.IInvokedMethod method,
                             org.testng.ITestResult testResult)
Specified by:
beforeInvocation in interface org.testng.IInvokedMethodListener

afterInvocation

public void afterInvocation(org.testng.IInvokedMethod method,
                            org.testng.ITestResult testResult)
Specified by:
afterInvocation in interface org.testng.IInvokedMethodListener


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.