Mockito Programming Model
Jump to navigation
Jump to search
Internal
Overview
API
import static org.mockito.Mockito.mock;
public class SomeClassTest {
private ExternalDependency mockExternalDependency;
@Before
public void setUp() {
mockExternalDependency = mock(ExternalDependency.class);
}
@Test
public void someTest() throws Exception {
...
}
}