There is no AudioManager in android_framework_mocks.jar. How to mock it?
49 views
Skip to first unread message
Andrey Fedorov
unread,
Aug 5, 2011, 1:30:37 AM8/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to androi...@googlegroups.com
Hello.
I'm writing an application that change a volume of the alarm sound. Now I need to test the volume settings but AndrodMock can't mack the AudioManager class.
The mock class doesn't appear in bin/genmocks directory of my project. There is no any error in AnnotationProcessor.log. In testing time I get the error "Could not find mock for android.media.AudioManager -- Make sure to run the MockGenerator.jar on your test jar....."
How to mock AudioManager to test calling ot it methods?
Akshat Jain
unread,
Jul 27, 2012, 5:34:55 AM7/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message