Package io.mockk.junit4

Types

Link copied to clipboard
class MockKRule(testSubject: Any) : TestWatcher, TestRule

A simple JUnit 4 rule which handles the setting up and tearing down of mock objects using the MockK or RelaxedMockK annotations at the beginning and end of each test respectively - without needing to manually call unmockkAll or MockKAnnotations.init.