Mockito Programming Model: Difference between revisions
Jump to navigation
Jump to search
(→API) |
|||
Line 1: | Line 1: | ||
=Internal= | =Internal= | ||
* [[Mockito#Subjects|Mockito]] | * [[Mockito#Subjects|Mockito]] | ||
* [[Mockito_Concepts|Mockito Concepts]] | |||
=Overview= | =Overview= | ||
=API= | =API= |
Revision as of 03:32, 16 July 2021
Internal
Overview
API
import static org.mockito.Mockito.mock;
import com.example.ExternalDependency;
public class SomeClassTest {
private ExternalDependency mockExternalDependency;
@Before
public void setUp() {
mockExternalDependency = mock(ExternalDependency.class);
}
@Test
public void someTest() throws Exception {
...
}
}