java - JMockit: Mocking an empty interface -


public interface connection extends session {} 

i need mock interface using 1 of methods in session class.

    new mockup<connection>() {         @mock objectinfo thismethod(returnobject object) {             return expectedobject;         }     }; 

thismethod doesnt gets called during mockup.

how go mocking connection interface in case?


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -