Android mock Camera
Is it possible to mock the Android Camera class ?
@Override
public void setUp() {
_camera = Mockito.mock(Camera.class);
}
fails to generate a mock (ExceptionInitializerError in Mockito's
createProxyClass).
Should I create some kind of wrapper around the Camera (not my favorite
solution, would really like to just mock the class...)?
Or, should I use a different mock library then Mockito?
Hope somebody can point me in the right direction.
Thanks a bunch,
Bas
No comments:
Post a Comment