Merge pull request #7211 from amit2103/BAEL-14274-15

[BAEL-14274] - Fixed article code for https://www.baeldung.com/mockit
This commit is contained in:
Loredana Crusoveanu 2019-07-20 21:27:42 +03:00 committed by GitHub
commit 76099945aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ public class MockitoInjectIntoSpyUnitTest {
private MyDictionary spyDic;
@Test
public void whenUseInjectMocksAnnotation_thenCorrect2() {
public void whenUseInjectMocksAnnotation_thenCorrect() {
Mockito.when(wordMap.get("aWord")).thenReturn("aMeaning");
assertEquals("aMeaning", spyDic.getMeaning("aWord"));