org.jboss.test.selenium.listener
Class TestMethodSelector

java.lang.Object
  extended by org.jboss.test.selenium.listener.TestMethodSelector
All Implemented Interfaces:
org.testng.IAnnotationTransformer, org.testng.ITestNGListener

public class TestMethodSelector
extends Object
implements org.testng.IAnnotationTransformer

Uses system property "method" to determine, if the test method should be run or not.

Disables the such test methods, which doesn't match the given method name. The '*' wildcard can be used to filter methods.

Must be registered in TestNG listeners to filter the methods.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
TestMethodSelector()
           
 
Method Summary
 void transform(org.testng.annotations.ITestAnnotation annotation, Class testClass, Constructor testConstructor, Method testMethod)
          Disables the test methods which doesn't match the given method name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestMethodSelector

public TestMethodSelector()
Method Detail

transform

public void transform(org.testng.annotations.ITestAnnotation annotation,
                      Class testClass,
                      Constructor testConstructor,
                      Method testMethod)
Disables the test methods which doesn't match the given method name.

Specified by:
transform in interface org.testng.IAnnotationTransformer


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