Mockito Programming Model: Difference between revisions
Jump to navigation
Jump to search
(→API) |
(→API) |
||
Line 20: | Line 20: | ||
} | } | ||
} | } | ||
</syntaxhighlight> | |||
=Annotations= | =Annotations= |
Revision as of 03:31, 16 July 2021
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 {
...
}
}