All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.annotations.Guice Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.annotations;

import static java.lang.annotation.ElementType.TYPE;

import com.google.inject.Module;

import org.testng.IModuleFactory;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * This annotation specifies what Guice modules should be used to instantiate
 * this test class.
 * 
 * @author Cedric Beust 
 */
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(TYPE)
@Documented
public @interface Guice {
  /**
   * @return the list of modules to query when trying to create an instance of this test class.
   */
  Class[] modules() default {};

  Class moduleFactory() default IModuleFactory.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy