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
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
to androi...@googlegroups.com, bete...@gmail.com
did u get it to work?
Reply all
Reply to author
Forward
0 new messages