org.ehoffman.testing.module.webapp
Class MyEnforcer

java.lang.Object
  extended by org.ehoffman.testing.testng.ExtensibleTestNGListener
      extended by org.ehoffman.testing.module.webapp.MyEnforcer
All Implemented Interfaces:
org.testng.IInvokedMethodListener, org.testng.IMethodInterceptor, org.testng.ITestListener, org.testng.ITestNGListener

public class MyEnforcer
extends org.ehoffman.testing.testng.ExtensibleTestNGListener

This is a reference implementation of the an ExtensibleTestNGListener. It captures logging, provides fixture framework support, ignores tests set with a Broken annotation, and checks that all tests belong to a fixed set of groups.

Author:
rexhoffman

Constructor Summary
MyEnforcer()
           
 
Method Summary
static boolean isIdeMode()
           
static boolean isIntegrationPhase()
           
static boolean isRunBrokenTests()
           
 
Methods inherited from class org.ehoffman.testing.testng.ExtensibleTestNGListener
afterInvocation, beforeInvocation, intercept, onFinish, onStart, onTestFailedButWithinSuccessPercentage, onTestFailure, onTestSkipped, onTestStart, onTestSuccess, setInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyEnforcer

public MyEnforcer()
Method Detail

isIntegrationPhase

public static boolean isIntegrationPhase()

isIdeMode

public static boolean isIdeMode()

isRunBrokenTests

public static boolean isRunBrokenTests()


Copyright © 2011. All Rights Reserved.