Package com.episode6.mockspresso2.plugins.javax.inject

Functions

Link copied to clipboard
fun MockspressoInstance.injectNow(instance: Any)

Perform field and method injection on an object that's been created outside the context of mockspresso.

fun <T : Any> MockspressoInstance.injectNow(instance: T, token: TypeToken<T>)

Perform field and method injection on an object that's been created outside the context of mockspresso. This method is safe to use with generic objects

Link copied to clipboard

Enable automatic mapping of javax.inject.Providers to their underlying dependencies.

Link copied to clipboard

Make real objects using reflection according to java.inject rules. Supports constructor, property, field and method injection.