mockspresso-easymock-powermock / com.episode6.hackit.mockspresso.easymock.powermock

Package com.episode6.hackit.mockspresso.easymock.powermock

Types

EasyPowerMockFieldPreparer

open class EasyPowerMockFieldPreparer : FieldPreparer

A FieldPreparer for Powermock + EasyMock. Powermock doesn't seem to offer a nice way to init mocks on an arbitrary object that isn't the testClass (and the runner/rule deals with those). So to handle testResources, we use this custom FieldPreparer that expects some mocks/spies to already be initialized (and doesn't touch those). We use PowerMock#createMock(Class) to create mocks.

EasyPowerMockMockerConfig

open class EasyPowerMockMockerConfig : MockerConfig

A MockerConfig for PowerMock + EasyMock

EasyPowerMockMockMaker

open class EasyPowerMockMockMaker : MockMaker

A MockMaker for PowerMock + EasyMock

EasyPowerMockPlugin

open class EasyPowerMockPlugin : MockspressoPlugin

Plugin that applies EasyPowerMockMockerConfig to enable mockspresso usage with Powermock + EasyMock. This plugin does not apply a PowerMockRule, so the implementer is responsible for either running their test with the PowerMockRunner or applying their own PowerMockRule

EasyPowerMockRulePlugin

open class EasyPowerMockRulePlugin : MockspressoPlugin

Plugin that applies EasyPowerMockMockerConfig AND applies a PowerMockRule as an outer rule to Mockspresso. Use this plugin if you want to use PowerMock without applying the PowerMockRunner

MockspressoEasyPowerMockPluginsJavaSupport
(Kotlin 9999.0)

object MockspressoEasyPowerMockPluginsJavaSupport

Expose the extension methods defined here as MockspressoPlugins for consumption by java tests

Extensions for External Classes

com.episode6.hackit.mockspresso.Mockspresso.Builder