Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java mockito subclass mocken method

@Spy
private Subclass subclassSpy = new Sublcass();

@Before
public void init(){
   MockitoAnnotations.initMocks(this);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #mockito #subclass #mocken #method
ADD COMMENT
Topic
Name
9+1 =