Guice (TestNG)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.testng.annotations
Annotation Type Guice

    @Retention(value=RUNTIME)
    @Target(value=TYPE)
    public @interface Guice

This annotation specifies what Guice modules should be used to instantiate this test class.

Author:
  Cedric Beust

Optional Element Summary
`java.lang.Class<? extends IModuleFactory>` | `moduleFactory`
`java.lang.Class<? extends com.google.inject.Module>[]` | `modules`

### modules

    public abstract java.lang.Class<? extends com.google.inject.Module>[] modules

  Returns:
    the list of modules to query when trying to create an instance of this test class.
  Default:
    {}

### moduleFactory

    public abstract java.lang.Class<? extends IModuleFactory> moduleFactory

  Default:
    org.testng.IModuleFactory.class

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT