-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android] Bump unit test robolectric version to 4.10.3 #42454
Changes from 8 commits
6bc389f
ca54db5
c495aac
3e50769
d765607
45d68bf
c7136bd
3bd8cd2
933ab87
9e5f8df
35299dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,7 +117,6 @@ public void draw(Canvas canvas) { | |
verify(surface, times(1)).lockHardwareCanvas(); | ||
verify(surface, times(1)).unlockCanvasAndPost(canvas); | ||
verifyNoMoreInteractions(surface); | ||
verifyNoMoreInteractions(canvas); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No longer can be expected due to robolectric/robolectric#7279; there are now calls to |
||
} | ||
|
||
@Test | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -779,8 +779,7 @@ public void disposeNullAndroidView() { | |
PlatformViewFactory viewFactory = mock(PlatformViewFactory.class); | ||
PlatformView platformView = mock(PlatformView.class); | ||
|
||
Context context = ApplicationProvider.getApplicationContext(); | ||
View androidView = new View(context); | ||
View androidView = mock(View.class); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using the |
||
when(platformView.getView()).thenReturn(androidView); | ||
when(viewFactory.create(any(), eq(platformViewId), any())).thenReturn(platformView); | ||
platformViewsController.getRegistry().registerViewFactory("testType", viewFactory); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robolectric expects to find an extension of
ShadowResources
when@Implements(Resources.class)
is specified, as per the docs.