mockspresso-basic-plugins / com.episode6.hackit.mockspresso.basic.plugin.javax

Package com.episode6.hackit.mockspresso.basic.plugin.javax

Types

JavaxInjectionConfig

open class JavaxInjectionConfig : InjectionConfig

An implementation of InjectionConfig designed for the javax.inject package. With this config, we look for the constructor annotated with @Inject, and prefer it. If no @Inject constructor is found, we will use and empty constructor, if one is found. If multiple @Inject constructors are found, an exception will be thrown.

JavaxInjectMockspressoPlugin

open class JavaxInjectMockspressoPlugin : MockspressoPlugin

A Mockspresso Plugin that applies logic to simulate a javax.inject compatible DI framework.

ProviderMaker

open class ProviderMaker : SpecialObjectMaker

An implementation of SpecialObjectMaker for javax.inject.Provider.

Exceptions

MultipleInjectConstructorException

open class MultipleInjectConstructorException : VerifyError

Exception thrown when trying to create an object with multiple @Inject constructors (when using the JavaxInjectionConfig