java - How to mock KeyguardManager -


i'm trying write test iskeyguardsecure() method of keyguardmanager class.

when attempt create mock object using easymock line:

keyguardmanager keyguardmanagermock = easymock.createmock(keyguardmanager.class); 

i receive error:

java.lang.illegalargumentexception: android.app.keyguardmanager not interface 

any ideas on how create mock of keyguardmanager class?

it should work fine think using old version of easymock. need class extension mock class.

can please try easymock 3+ ? should work right away


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

node.js - Express and Redis - If session exists for this user, don't allow access -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -