Shadows rely on there being an instance of the object being shadowed,
so afiak there's no way to shadow static methods.
I'm not familiar with PowerMock, and I haven't ever tried mocking
static methods with Mockito, but I don't see any reason why those
shouldn't work as they would in a non-android project, since
robolectric tests run in the normal JVM.
(Oh, and I'm assuming by "static class" you mean a class with only
static methods that you never instantiate, as opposed to a "static
inner class"?)
--Aaron V.
--
--Aaron V.
[
http://github.com/avh4 ]