Skip to content

Commit a25512a

Browse files
Matthew S. Runonhaarman
authored andcommitted
Use non-deprecated version of constructor to set RETURNS_DEEP_STUBS
1 parent ad25f27 commit a25512a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mockito-kotlin/src/test/kotlin/test/MockTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class MockTest : TestBase() {
8181

8282
@Test
8383
fun deepStubs() {
84-
val cal: Calendar = mock(RETURNS_DEEP_STUBS)
84+
val cal: Calendar = mock(defaultAnswer = RETURNS_DEEP_STUBS)
8585
whenever(cal.time.time).thenReturn(123L)
8686
expect(cal.time.time).toBe(123L)
8787
}

0 commit comments

Comments
 (0)