Search in sources :

Example 1 with ShadowProviderGenerator

use of org.robolectric.annotation.processing.generator.ShadowProviderGenerator in project robolectric by robolectric.

the class RobolectricProcessor method init.

@Override
public void init(ProcessingEnvironment environment) {
    super.init(environment);
    processOptions(environment.getOptions());
    model = new RobolectricModel(environment.getElementUtils(), environment.getTypeUtils());
    addValidator(new ImplementationValidator(model, environment));
    addValidator(new ImplementsValidator(model, environment));
    addValidator(new RealObjectValidator(model, environment));
    addValidator(new ResetterValidator(model, environment));
    generators.add(new ShadowProviderGenerator(model, environment, shouldInstrumentPackages));
    generators.add(new ServiceLoaderGenerator(model, environment));
}
Also used : ImplementationValidator(org.robolectric.annotation.processing.validator.ImplementationValidator) RealObjectValidator(org.robolectric.annotation.processing.validator.RealObjectValidator) ShadowProviderGenerator(org.robolectric.annotation.processing.generator.ShadowProviderGenerator) ImplementsValidator(org.robolectric.annotation.processing.validator.ImplementsValidator) ServiceLoaderGenerator(org.robolectric.annotation.processing.generator.ServiceLoaderGenerator) ResetterValidator(org.robolectric.annotation.processing.validator.ResetterValidator)

Aggregations

ServiceLoaderGenerator (org.robolectric.annotation.processing.generator.ServiceLoaderGenerator)1 ShadowProviderGenerator (org.robolectric.annotation.processing.generator.ShadowProviderGenerator)1 ImplementationValidator (org.robolectric.annotation.processing.validator.ImplementationValidator)1 ImplementsValidator (org.robolectric.annotation.processing.validator.ImplementsValidator)1 RealObjectValidator (org.robolectric.annotation.processing.validator.RealObjectValidator)1 ResetterValidator (org.robolectric.annotation.processing.validator.ResetterValidator)1