Ajocado TestNG Integration 1.0.0.Alpha2

org.jboss.arquillian.ajocado.testng.listener
Class AbstractConfigurationListener

java.lang.Object
  extended by org.testng.TestListenerAdapter
      extended by org.jboss.arquillian.ajocado.testng.listener.AbstractConfigurationListener
All Implemented Interfaces:
org.testng.IInvokedMethodListener, org.testng.internal.IConfigurationListener, org.testng.internal.IResultListener, org.testng.ITestListener, org.testng.ITestNGListener
Direct Known Subclasses:
AjocadoRunner

public abstract class AbstractConfigurationListener
extends org.testng.TestListenerAdapter
implements org.testng.IInvokedMethodListener

TestNG Listener able to watch configuration method and tie it's lifecycle to them (using specified method dependencies, defining ordering on methods).

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
AbstractConfigurationListener()
           
 
Method Summary
 void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult result)
           Invoked after each invocation of configuration or test method of test cases.
 void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult result)
           Invoked before each invocation of configuration or test method of test cases.
 void onClassFinish()
          Invoked after the all configuration methods for given test class are invoked.
 void onClassStart()
          Invoked before the any configuration method for given test class is invoked.
 void onConfigurationFailure(org.testng.ITestResult result)
           
 void onConfigurationSkip(org.testng.ITestResult result)
           
 void onConfigurationSuccess(org.testng.ITestResult result)
           
 void onFinish(org.testng.ITestContext context)
           
 void onStart(org.testng.ITestContext context)
           
 void onSuiteStart()
           
 void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
           
 void onTestFailure(org.testng.ITestResult result)
           
 void onTestSkipped(org.testng.ITestResult result)
           
 void onTestStart(org.testng.ITestResult result)
           
 void onTestSuccess(org.testng.ITestResult result)
           
 String toString()
           
 
Methods inherited from class org.testng.TestListenerAdapter
getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractConfigurationListener

public AbstractConfigurationListener()
Method Detail

onStart

public void onStart(org.testng.ITestContext context)
Specified by:
onStart in interface org.testng.ITestListener
Overrides:
onStart in class org.testng.TestListenerAdapter

onFinish

public void onFinish(org.testng.ITestContext context)
Specified by:
onFinish in interface org.testng.ITestListener
Overrides:
onFinish in class org.testng.TestListenerAdapter

onSuiteStart

public void onSuiteStart()

onClassStart

public void onClassStart()
Invoked before the any configuration method for given test class is invoked.


onClassFinish

public void onClassFinish()
Invoked after the all configuration methods for given test class are invoked.


onTestStart

public void onTestStart(org.testng.ITestResult result)
Specified by:
onTestStart in interface org.testng.ITestListener
Overrides:
onTestStart in class org.testng.TestListenerAdapter

onTestFailedButWithinSuccessPercentage

public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult result)
Specified by:
onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListener
Overrides:
onTestFailedButWithinSuccessPercentage in class org.testng.TestListenerAdapter

onTestFailure

public void onTestFailure(org.testng.ITestResult result)
Specified by:
onTestFailure in interface org.testng.ITestListener
Overrides:
onTestFailure in class org.testng.TestListenerAdapter

onTestSkipped

public void onTestSkipped(org.testng.ITestResult result)
Specified by:
onTestSkipped in interface org.testng.ITestListener
Overrides:
onTestSkipped in class org.testng.TestListenerAdapter

onTestSuccess

public void onTestSuccess(org.testng.ITestResult result)
Specified by:
onTestSuccess in interface org.testng.ITestListener
Overrides:
onTestSuccess in class org.testng.TestListenerAdapter

onConfigurationSuccess

public void onConfigurationSuccess(org.testng.ITestResult result)
Specified by:
onConfigurationSuccess in interface org.testng.internal.IConfigurationListener
Overrides:
onConfigurationSuccess in class org.testng.TestListenerAdapter

onConfigurationFailure

public void onConfigurationFailure(org.testng.ITestResult result)
Specified by:
onConfigurationFailure in interface org.testng.internal.IConfigurationListener
Overrides:
onConfigurationFailure in class org.testng.TestListenerAdapter

onConfigurationSkip

public void onConfigurationSkip(org.testng.ITestResult result)
Specified by:
onConfigurationSkip in interface org.testng.internal.IConfigurationListener
Overrides:
onConfigurationSkip in class org.testng.TestListenerAdapter

beforeInvocation

public void beforeInvocation(org.testng.IInvokedMethod method,
                             org.testng.ITestResult result)

Invoked before each invocation of configuration or test method of test cases.

Satisfies, that all configuration methods, which can be executed before the invocated method are executed.

Specified by:
beforeInvocation in interface org.testng.IInvokedMethodListener

afterInvocation

public void afterInvocation(org.testng.IInvokedMethod method,
                            org.testng.ITestResult result)

Invoked after each invocation of configuration or test method of test cases.

Satisfies that all dependencies of this method which can be immediately executed are executed.

Specified by:
afterInvocation in interface org.testng.IInvokedMethodListener

toString

public String toString()
Overrides:
toString in class org.testng.TestListenerAdapter

Ajocado TestNG Integration 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.