MyTimeOutTransformer.java :  » Testing » testng » test » annotationtransformer » Java Open Source

Java Open Source » Testing » testng 
testng » test » annotationtransformer » MyTimeOutTransformer.java
package test.annotationtransformer;

import java.lang.reflect.Constructor;
import java.lang.reflect.Method;

import org.testng.internal.annotations.IAnnotationTransformer;
import org.testng.internal.annotations.ITest;

public class MyTimeOutTransformer implements IAnnotationTransformer {

  public void transform(ITest annotation, Class testClass,
      Constructor testConstructor, Method testMethod) 
  {
    annotation.setTimeOut(5000); // 5 seconds
  }
  

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.