Home
last modified time | relevance | path

Searched refs:withStringVarargsReturningString (Results 1 – 1 of 1) sorted by relevance

/external/mockito/src/test/java/org/mockitousage/basicapi/
DUsingVarargsTest.java25 String withStringVarargsReturningString(int value, String... s); in withStringVarargsReturningString() method
35 when(mock.withStringVarargsReturningString(1)).thenReturn("1"); in shouldStubStringVarargs()
36 when(mock.withStringVarargsReturningString(2, "1", "2", "3")).thenReturn("2"); in shouldStubStringVarargs()
41 assertEquals("1", mock.withStringVarargsReturningString(1)); in shouldStubStringVarargs()
42 assertEquals(null, mock.withStringVarargsReturningString(2)); in shouldStubStringVarargs()
44 assertEquals("2", mock.withStringVarargsReturningString(2, "1", "2", "3")); in shouldStubStringVarargs()
45 assertEquals(null, mock.withStringVarargsReturningString(2, "1", "2")); in shouldStubStringVarargs()
46 assertEquals(null, mock.withStringVarargsReturningString(2, "1", "2", "3", "4")); in shouldStubStringVarargs()
47 assertEquals(null, mock.withStringVarargsReturningString(2, "1", "2", "9999")); in shouldStubStringVarargs()