Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View alpizano's full-sized avatar
:octocat:
grinding to the top

Al Pizano alpizano

:octocat:
grinding to the top
  • Capital One
  • Dallas, TX
View GitHub Profile
@alpizano
alpizano / MockitoSpyExample.java
Created August 15, 2022 15:14 — forked from alainlompo/MockitoSpyExample.java
Mockito spy example
import static org.mockito.Mockito.*;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
public class MockitoSpyExample {
@Test
public void spyExample_nominal_case_Test() {
Map<String, String> hashMap = new HashMap<String, String>();
Map<String, String> mapSpy = spy(hashMap);