Skip to content

Conversation

@nhaarman
Copy link
Collaborator

@nhaarman nhaarman commented Apr 1, 2017

pawel bochenski and others added 7 commits March 30, 2017 15:15
with this method one can define mock for class

val someMock = mock<Object>()

and then define stubs in test

someMock.stub {
	on { something } doReturn somethingElse
}

It is useful when some tests reuse mock object but with different stubbing
Added stub extension function
@nhaarman nhaarman merged commit e0c1475 into master Apr 1, 2017
@nhaarman nhaarman deleted the release-1.4.0 branch April 1, 2017 17:44
@nhaarman nhaarman removed the in-review label Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants