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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -